File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 88 "build" : " npm run clean && tsc" ,
99 "clean" : " rm -rf ./dist" ,
1010 "watch" : " tsc --watch" ,
11- "prepublishOnly" : " npm run build"
11+ "prepublishOnly" : " npm run build" ,
12+ "prepare" : " tsc"
1213 },
1314 "author" : " CodetrixStudio" ,
1415 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ export class GoogleAuthWeb extends WebPlugin implements GoogleAuthPlugin {
1010 gapiLoaded : Promise < void > ;
1111
1212 get webConfigured ( ) : boolean {
13- return document . getElementsByName ( 'google-signin-client_id' ) . length > 0 ;
13+ if ( typeof document !== 'undefined' ) {
14+ return document . getElementsByName ( 'google-signin-client_id' ) . length > 0 ;
15+ } else {
16+ return false ;
17+ }
1418 }
1519
1620 constructor ( ) {
You can’t perform that action at this time.
0 commit comments