Skip to content

Commit

Permalink
make script path construction also work with https URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoening committed Sep 17, 2016
1 parent dab82f2 commit a73ab8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared-widget/widget.js
Expand Up @@ -66,7 +66,7 @@ function scriptPath() {
}
// nh: making sure path is absolute (FF makes relative paths absolute on it's own,
// not sure about others)
if (path.substring(0,7) !== 'http://') {
if (path.substring(0,7) !== 'http://' && path.substring(0,8) !== 'https://') {
path = path + window.location.hostname + window.location.pathname;
}
return path;
Expand Down

0 comments on commit a73ab8b

Please sign in to comment.