mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
chore(skydrive) change quotes
This commit is contained in:
parent
c36a125185
commit
47622e2d4d
1 changed files with 7 additions and 7 deletions
|
|
@ -36,30 +36,30 @@ var CloudCmd, Util, DOM, WL;
|
|||
});
|
||||
|
||||
WL.login({
|
||||
scope: ["wl.skydrive wl.signin"]
|
||||
scope: ['wl.skydrive wl.signin']
|
||||
}).then(
|
||||
function(response) {
|
||||
Util.log(response);
|
||||
},
|
||||
function() {
|
||||
Util.log("Failed to authenticate.");
|
||||
Util.log('Failed to authenticate.');
|
||||
});
|
||||
|
||||
WL.Event.subscribe("auth.login", onLogin);
|
||||
WL.Event.subscribe('auth.login', onLogin);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function onLogin() {
|
||||
var strGreeting = "";
|
||||
var strGreeting = '';
|
||||
WL.api({
|
||||
path: "me",
|
||||
method: "GET"
|
||||
path: 'me',
|
||||
method: 'GET'
|
||||
},
|
||||
|
||||
function (response) {
|
||||
if (!response.error) {
|
||||
strGreeting = "Hi, " + response.first_name + "!";
|
||||
strGreeting = 'Hi, ' + response.first_name + '!';
|
||||
Util.log(strGreeting);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue