We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d73b25b + 42d4a95 commit 011171dCopy full SHA for 011171d
src/js/saspowerschoolff.js
@@ -115,11 +115,17 @@ function class_page () {
115
116
async function login_page () {
117
$('<div id="saspes-info"></div>').insertAfter('div#content');
118
- new (Vue.extend(ExtensionInfo))({
119
- data: {
120
- showInfo: true,
121
- },
122
- }).$mount('#saspes-info');
+ browser.storage.local.get("showExtensionInfo").then(output => {
+ let showInfoOpt = output?.showExtensionInfo;
+ if (showInfoOpt === undefined) {
+ showInfoOpt = true;
+ }
123
+ new (Vue.extend(ExtensionInfo))({
124
+ data: {
125
+ showInfo: showInfoOpt,
126
+ },
127
+ }).$mount('#saspes-info');
128
+ });
129
130
const LastGradesDiv = document.createElement('div');
131
LastGradesDiv.classList.add("last-grade-div-fixed");
0 commit comments