aboutsummaryrefslogtreecommitdiff
path: root/js/io/system
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-27 10:51:15 -0800
committerValerio Virgillito2012-02-27 10:51:15 -0800
commitda60be29baab67440535b6b2b71fe7de989dfed0 (patch)
tree3cda434387f2aa6744808b2b0b4e7571d6d3a467 /js/io/system
parenta5d635a29de97a7daa93b9036d7a7dce48f07670 (diff)
parent72baf1c366829ada6858097dd7553ee9988d6110 (diff)
downloadninja-da60be29baab67440535b6b2b71fe7de989dfed0.tar.gz
Merge branch 'local-storage-version' of https://github.com/mencio/ninja-internal into integration-candidate
Diffstat (limited to 'js/io/system')
-rwxr-xr-xjs/io/system/coreioapi.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js
index 2051da43..f428a229 100755
--- a/js/io/system/coreioapi.js
+++ b/js/io/system/coreioapi.js
@@ -28,9 +28,9 @@ exports.CoreIoApi = Montage.create(Component, {
28 value: function () { 28 value: function () {
29 //////////////////////////////////////////////////////////// 29 ////////////////////////////////////////////////////////////
30 //Checking for local storage of URL for IO 30 //Checking for local storage of URL for IO
31 if (window.localStorage['ioRootUrl']) { 31 if (this.application.localStorage.getItem("ioRootUrl")) {
32 //Getting URL from local storage 32 //Getting URL from local storage
33 this.rootUrl = window.localStorage['ioRootUrl']; 33 this.rootUrl = this.application.localStorage.getItem("ioRootUrl");
34 //Checks for IO API to be active 34 //Checks for IO API to be active
35 this.ioServiceDetected = this.cloudAvailable(); 35 this.ioServiceDetected = this.cloudAvailable();
36 } else { 36 } else {
@@ -156,7 +156,7 @@ exports.CoreIoApi = Montage.create(Component, {
156 return this._rootUrl; 156 return this._rootUrl;
157 }, 157 },
158 set: function(value) { 158 set: function(value) {
159 this._rootUrl = window.localStorage["ioRootUrl"] = value; 159 this._rootUrl = this.application.localStorage.setItem("ioRootUrl", value);
160 } 160 }
161 }, 161 },
162 //////////////////////////////////////////////////////////////////// 162 ////////////////////////////////////////////////////////////////////