Skip to content

Commit 06b3d83

Browse files
committed
0.6.1
1 parent 0a546a6 commit 06b3d83

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
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.6.0",
3+
"version": "0.6.1",
44
"description": "Cross domain local storage",
55
"license": "Apache-2.0",
66
"authors": [

dist/client.js

Lines changed: 9 additions & 3 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.6.0
4+
* @version 0.6.1
55
* @link https://github.com/zendesk/cross-storage
66
* @author Daniel St. Jules <danielst.jules@gmail.com>
77
* @copyright Zendesk
@@ -100,7 +100,7 @@ CrossStorageClient.frameStyle = {
100100
* @returns {string} The origin of the url
101101
*/
102102
CrossStorageClient._getOrigin = function(url) {
103-
var uri, origin;
103+
var uri, protocol, origin;
104104

105105
uri = document.createElement('a');
106106
uri.href = url;
@@ -109,7 +109,13 @@ CrossStorageClient._getOrigin = function(url) {
109109
uri = window.location;
110110
}
111111

112-
origin = uri.protocol + '//' + uri.host;
112+
if (!uri.protocol || uri.protocol === ':') {
113+
protocol = window.location.protocol;
114+
} else {
115+
protocol = uri.protocol;
116+
}
117+
118+
origin = protocol + '//' + uri.host;
113119
origin = origin.replace(/:80$|:443$/, '');
114120

115121
return origin;

dist/client.min.js

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

dist/hub.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.6.0
4+
* @version 0.6.1
55
* @link https://github.com/zendesk/cross-storage
66
* @author Daniel St. Jules <danielst.jules@gmail.com>
77
* @copyright Zendesk

dist/hub.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.

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.6.0",
3+
"version": "0.6.1",
44
"description": "Cross domain local storage",
55
"keywords": [
66
"local",

0 commit comments

Comments
 (0)