File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,18 @@ function class_page () {
115115
116116async 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" ) ;
You can’t perform that action at this time.
0 commit comments