Skip to content

Commit 80dd1f6

Browse files
author
Suhas Hariharan
committed
re-added show info option
Signed-off-by: Suhas Hariharan <[email protected]>
1 parent d73b25b commit 80dd1f6

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/js/saspowerschoolff.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,18 @@ function class_page () {
115115

116116
async function login_page () {
117117
$('<div id="saspes-info"></div>').insertAfter('div#content');
118-
new (Vue.extend(ExtensionInfo))({
119-
data: {
120-
showInfo: true,
121-
},
122-
}).$mount('#saspes-info');
118+
browser.storage.local.get("showExtensionInfo").then(output => {
119+
console.log(output.showExtensionInfo);
120+
let showInfoOpt = output?.showExtensionInfo;
121+
if (showInfoOpt === undefined) {
122+
showInfoOpt = true;
123+
}
124+
new (Vue.extend(ExtensionInfo))({
125+
data: {
126+
showInfo: showInfoOpt,
127+
},
128+
}).$mount('#saspes-info');
129+
});
123130

124131
const LastGradesDiv = document.createElement('div');
125132
LastGradesDiv.classList.add("last-grade-div-fixed");

0 commit comments

Comments
 (0)