Skip to content

Commit 011171d

Browse files
author
Suhas Hariharan
authored
Merge pull request #261 from sas-fossdev/save-info-closed
Re-added info closed option
2 parents d73b25b + 42d4a95 commit 011171d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/js/saspowerschoolff.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,17 @@ 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+
let showInfoOpt = output?.showExtensionInfo;
120+
if (showInfoOpt === undefined) {
121+
showInfoOpt = true;
122+
}
123+
new (Vue.extend(ExtensionInfo))({
124+
data: {
125+
showInfo: showInfoOpt,
126+
},
127+
}).$mount('#saspes-info');
128+
});
123129

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

0 commit comments

Comments
 (0)