diff --git a/dist/frontend.js b/dist/frontend.js index a1a5695..2405213 100644 --- a/dist/frontend.js +++ b/dist/frontend.js @@ -610,7 +610,7 @@ const ae=new WeakMap,ne=v(e=>t=>{if(!(t instanceof P))throw new Error("unsafeHTM `:O`

Connecting to Google Drive...

- `}`}script(){const e=document.createElement("script");return e.onload=()=>this.onLoad(),e.src="https://apis.google.com/js/platform.js",e}gauth(e,t){gapi.load("auth2",()=>{gapi.auth2.authorize({client_id:"758792702348-kokjbpv1leqid7ac7tjq7pbp37cg05kq.apps.googleusercontent.com",scope:"https://www.googleapis.com/auth/drive.file",prompt:e},t)})}}class He extends ie{constructor(){super(),this.view="replay",this.replayTS=""}static get properties(){return{replayUrl:{type:String},replayTS:{type:String},source:{type:String},paramString:{type:String}}}firstUpdated(){this.paramString=new URLSearchParams({replayUrl:this.replayUrl,replayTS:this.replayTS,source:this.source,view:this.view})}render(){return O` + `}`}script(){const e=document.createElement("script");return e.onload=()=>this.onLoad(),e.src="https://apis.google.com/js/platform.js",e}gauth(e,t){gapi.load("auth2",()=>{gapi.auth2.authorize({client_id:"160798412227-tko4c82uopud11q105b2lvbogsj77hlg.apps.googleusercontent.com",scope:"https://www.googleapis.com/auth/drive.file",prompt:e},t)})}}class He extends ie{constructor(){super(),this.view="replay",this.replayTS=""}static get properties(){return{replayUrl:{type:String},replayTS:{type:String},source:{type:String},paramString:{type:String}}}firstUpdated(){this.paramString=new URLSearchParams({replayUrl:this.replayUrl,replayTS:this.replayTS,source:this.source,view:this.view})}render(){return O` `}}class Fe extends ie{constructor(){super(),this.size="1.1em"}static get properties(){return{svg:{type:String},size:{type:String}}}static get styles(){return ee` :host { diff --git a/src/frontend.js b/src/frontend.js index 8d53c84..7a11d88 100644 --- a/src/frontend.js +++ b/src/frontend.js @@ -31,6 +31,8 @@ function wrapCss(custom) { return [allCss, custom]; } +const GDRIVE_CLIENT_ID = "160798412227-tko4c82uopud11q105b2lvbogsj77hlg.apps.googleusercontent.com"; + // =========================================================================== class AppMain extends LitElement { @@ -1461,7 +1463,7 @@ class WrGdrive extends LitElement gauth(prompt, callback) { gapi.load('auth2', () => { gapi.auth2.authorize({ - client_id: "758792702348-kokjbpv1leqid7ac7tjq7pbp37cg05kq.apps.googleusercontent.com", + client_id: GDRIVE_CLIENT_ID, scope: "https://www.googleapis.com/auth/drive.file", prompt }, callback);