update gdrive client id
This commit is contained in:
Vendored
+1
-1
@@ -610,7 +610,7 @@ const ae=new WeakMap,ne=v(e=>t=>{if(!(t instanceof P))throw new Error("unsafeHTM
|
||||
</button>
|
||||
`:O`
|
||||
<p>Connecting to Google Drive...</p>
|
||||
`}`}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`
|
||||
<iframe src="http://localhost:9990/?${this.paramString}"></iframe>
|
||||
`}}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 {
|
||||
|
||||
+3
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user