Skip to content

Commit 0b116a7

Browse files
committed
0.3.3
1 parent 7417757 commit 0b116a7

File tree

7 files changed

+23
-17
lines changed

7 files changed

+23
-17
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cross-storage",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "Cross domain local storage",
55
"license": "Apache-2.0",
66
"authors": [

dist/client-0.3.2.js renamed to dist/client-0.3.3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* cross-storage - Cross domain local storage
33
*
4-
* @version 0.3.2
4+
* @version 0.3.3
55
* @link https://github.com/zendesk/cross-storage
66
* @author Daniel St. Jules <danielst.jules@gmail.com>
77
* @copyright Zendesk

dist/client-0.3.2.min.js renamed to dist/client-0.3.3.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hub-0.3.2.min.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

dist/hub-0.3.2.js renamed to dist/hub-0.3.3.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* cross-storage - Cross domain local storage
33
*
4-
* @version 0.3.2
4+
* @version 0.3.3
55
* @link https://github.com/zendesk/cross-storage
66
* @author Daniel St. Jules <danielst.jules@gmail.com>
77
* @copyright Zendesk
@@ -28,7 +28,13 @@ var CrossStorageHub = {};
2828
* @param {array} permissions An array of objects with origin and allow
2929
*/
3030
CrossStorageHub.init = function(permissions) {
31-
if (!window.localStorage) return;
31+
// Return if localStorage is unavailable, or third party
32+
// access is disabled
33+
try {
34+
if (!window.localStorage) return;
35+
} catch (e) {
36+
return;
37+
}
3238

3339
CrossStorageHub._permissions = permissions || [];
3440
CrossStorageHub._installListener();

dist/hub-0.3.3.min.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cross-storage",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"description": "Cross domain local storage",
55
"keywords": [
66
"local",

0 commit comments

Comments
 (0)