Skip to content

Commit

Permalink
fix: removed debug items
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676E committed Dec 7, 2023
1 parent 50b8c65 commit f141b3f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions content_scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
return __awaiter(this, void 0, void 0, function* () {
let firstTime = true;
let userOption = yield browser.storage.local.get("hide");
//Create Type for userOption and message
if (!Object.prototype.hasOwnProperty.call(userOption, "hide")) {
yield browser.storage.local.set({ "hide": true });
userOption = (yield browser.storage.local.get("hide"));
Expand All @@ -28,10 +27,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
function showContent() {
window.location.reload();
document.body.style.border = "5px solid blue";
}
function hideContent() {
document.body.style.border = "5px solid red";
if (firstTime) {
removeContent();
firstTime = false;
Expand Down
2 changes: 0 additions & 2 deletions content_scripts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ interface UserOption {

function showContent(): void {
window.location.reload();
document.body.style.border = "5px solid blue";
}

function hideContent(): void {
document.body.style.border = "5px solid red";
if (firstTime) {
removeContent();
firstTime = false;
Expand Down

0 comments on commit f141b3f

Please sign in to comment.