Skip to content

Commit

Permalink
Fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Oct 27, 2023
1 parent fe75764 commit 3eed5a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
13 changes: 0 additions & 13 deletions src/scripts/content_moodle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,4 @@ import "/styles/moodle.scss";
import { Moodle } from "../class";
import loadGamingWebsite from "../utils/loadGamingWebsite";

//window.addEventListener("load", async () => await runFuncIfEnabled(Moodle.EnableRainbow));
loadGamingWebsite(Moodle);

// あとでリロード無しでゲーミングモード解除を実装する
/*
chrome.action.onClicked.addListener(async () => {
const isEnable = await isEnabled();
if (isEnable) {
EnableRainbow();
} else {
DisableRainbow();
}
});
*/
3 changes: 1 addition & 2 deletions src/utils/loadGamingWebsite.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { UnivWebsite } from "../class/UnivWebsite";
import isTrue from "./isTrue";
//import RunFuncIfEnabled from "./RunFuncIfEnabled";

// ウィンドウが読み込まれたらGundaiWebsiteのEnableRainbowを実行する
export default function loadGamingWebsite(website: UnivWebsite<unknown>) {
Expand All @@ -9,7 +8,7 @@ export default function loadGamingWebsite(website: UnivWebsite<unknown>) {
if (isTrue(isEnabled)) {
UnivWebsite.enable(website);
} else {
UnivWebsite.enable(website);
UnivWebsite.disable(website);
}
});
}

0 comments on commit 3eed5a2

Please sign in to comment.