Hi, I am trying to use torii in a cordova application. My environment.js file is as follows. I cannot access the window document object to configure redirectUri. getting undefined error. how can i access the windows document object.module.exports = function (environment) {
var ENV = {
environment: environment,
baseURL: '/',
locationType: 'hash',
EmberENV: {
FEATURES: {
}
},
APP: {
},
torii: {
providers: {
'facebook-oauth2': {
apiKey: '2xxxxxxxxxx',
redirectUri: document.location.href
},
}
},
cordova: {
rebuildOnChange: false,
rebuildAsync: false,
emulate: false
}
};
in my .jshintrc
"predef": {
"document": true,
"window": true,
"AuthENV": true
}
therefore, I assume that the document should be accessible worldwide, but it is not
Rigel source
share