Skip to content

Commit

Permalink
Updating typings
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-moreau committed Dec 29, 2018
1 parent 896dcb7 commit f915e9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions babylonjs-editor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ declare module 'babylonjs-editor/editor/tools/undo-redo' {
to?: any;
from?: any;
object?: any;
undo?: () => void;
redo?: () => void;
fn?: (type?: 'from' | 'to') => void;
}
export default class UndoRedo {
Expand Down
4 changes: 2 additions & 2 deletions src/editor/storage/one-drive-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class OneDriveStorage extends Storage {
* @param names the folders names
*/
public async createFolders (folder: any, names: string[]): Promise<void> {
await this.login();
for (const n of names) {
const content = JSON.stringify({
"name": n,
Expand Down Expand Up @@ -80,8 +81,7 @@ export default class OneDriveStorage extends Storage {

return new Promise<void>(resolve => {
if (OneDriveStorage._TOKEN === '' || now >= OneDriveStorage._TOKEN_EXPIRES_IN) {
//const clientID = '000000004C18353E'; // editor.babylonjs.com
const clientID = '0000000048182B1B';
const clientID = location.href.indexOf('editor.babylonjs.com') === -1 ? '0000000048182B1B' : '000000004C18353E';
const uri = 'https://login.live.com/oauth20_authorize.srf'
+ '?client_id=' + clientID
+ '&redirect_uri=' + Tools.GetBaseURL() + 'redirect.html'
Expand Down

0 comments on commit f915e9e

Please sign in to comment.