Skip to content

Commit d6c4e69

Browse files
author
deadfry42
committed
fix a very big bug that whiteboards show up even if the option is disabled
idk how i missed that one
1 parent 19a0e2d commit d6c4e69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/maths/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ export const settingsFrontend : Panel[] = [
116116

117117
var byteCount : number = 0;
118118

119+
setting.setValue("No data found!")
120+
119121
chrome.storage.local.get() .then((res) => {
120122
for (var key in res) {
121123
var id = deserialiseQuestionID(key);
@@ -562,7 +564,7 @@ export const classMapping : ClassMapping[] = [
562564
.addClassMatch("QuestionInfo")
563565
.addNewClass("SparxPlusQuestionInfo")
564566
.setIfMatched((element : HTMLElement, condition : Conditions) => {
565-
doWhiteboard(element)
567+
if (customSettings.whiteboard) doWhiteboard(element)
566568
}),
567569

568570
new ClassMapping([Conditions.Modified, Conditions.Added])

0 commit comments

Comments
 (0)