File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,19 @@ function installPWA(evt) {
8282 } else { // open in the browser
8383
8484 window . location . replace ( window . location . origin + '/full' ) ;
85+
86+ // save installation in local storage
87+ localStorage . setItem ( 'installed' , 'true' ) ;
8588
8689 }
8790
8891 } else { // open in the browser
8992
9093 window . location . replace ( window . location . origin + '/full' ) ;
9194
95+ // save installation in local storage
96+ localStorage . setItem ( 'installed' , 'true' ) ;
97+
9298 }
9399
94100}
@@ -110,10 +116,13 @@ document.querySelectorAll('.btn.install').forEach(button => {
110116
111117 button . addEventListener ( 'click' , installPWA ) ;
112118
113- if ( isSafari ) {
119+ if ( isSafari || ! isMobile ) {
114120
115121 button . classList . remove ( 'loading' ) ;
116122
123+ // save installation in local storage
124+ localStorage . setItem ( 'installed' , 'true' ) ;
125+
117126 }
118127
119128 if ( ! checkLocalStorage ( ) ) {
You can’t perform that action at this time.
0 commit comments