Skip to content

Commit

Permalink
0.13.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirco Cipriani committed Aug 3, 2017
1 parent b63af3d commit ba9295b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 12 deletions.
15 changes: 13 additions & 2 deletions dist/bower/stargate.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
}(this, function () {
// Public interface
var stargatePackageVersion = "0.13.5";
var stargatePackageVersion = "0.13.6";
var stargatePublic = {};

var stargateModules = {};
Expand Down Expand Up @@ -3491,7 +3491,7 @@ var _isHybridEnvironment = function(location) {
return true;
}

if (window.localStorage.getItem('hybrid')) {
if (hasLocalStorage && window.localStorage.getItem('hybrid')) {
return true;
}

Expand All @@ -3504,6 +3504,17 @@ var _isHybridEnvironment = function(location) {
return false;
};

var hasLocalStorage = function () {
var isLocalStorageSupported = false;    
try {      
window.localStorage.setItem('newton-test', 'pippo');      
isLocalStorageSupported = window.localStorage.getItem('newton-test') === 'pippo';
return isLocalStorageSupported;    
} catch (e) {
return isLocalStorageSupported;
}
};

var setBusy = function(value) {
if (value) {
startLoading();
Expand Down
8 changes: 4 additions & 4 deletions dist/bower/stargate.min.js

Large diffs are not rendered by default.

15 changes: 13 additions & 2 deletions dist/stargate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3935,7 +3935,7 @@
}
}(this, function () {
// Public interface
var stargatePackageVersion = "0.13.5";
var stargatePackageVersion = "0.13.6";
var stargatePublic = {};

var stargateModules = {};
Expand Down Expand Up @@ -7408,7 +7408,7 @@ var _isHybridEnvironment = function(location) {
return true;
}

if (window.localStorage.getItem('hybrid')) {
if (hasLocalStorage && window.localStorage.getItem('hybrid')) {
return true;
}

Expand All @@ -7421,6 +7421,17 @@ var _isHybridEnvironment = function(location) {
return false;
};

var hasLocalStorage = function () {
var isLocalStorageSupported = false;    
try {      
window.localStorage.setItem('newton-test', 'pippo');      
isLocalStorageSupported = window.localStorage.getItem('newton-test') === 'pippo';
return isLocalStorageSupported;    
} catch (e) {
return isLocalStorageSupported;
}
};

var setBusy = function(value) {
if (value) {
startLoading();
Expand Down
6 changes: 3 additions & 3 deletions dist/stargate.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stargatejs-apps",
"version": "0.13.5",
"version": "0.13.6",
"description": "StargateJS for HTML5 apps",
"main": "dist/stargate.js",
"scripts": {
Expand Down

0 comments on commit ba9295b

Please sign in to comment.