Skip to content

Commit 0e24e6b

Browse files
author
Thomas Klaner
committed
use static protocol for segment.io js include
... to properly work in phonegap
1 parent 5f6d0f9 commit 0e24e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ng-segmentio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ angular.module('segmentio', ['ng']).factory(
4646
script.type = 'text/javascript';
4747
script.id = 'analytics-js';
4848
script.async = true;
49-
script.src = '//cdn.segment.io/analytics.js/v1/' + key + '/analytics.min.js';
49+
script.src = 'https://cdn.segment.io/analytics.js/v1/' + key + '/analytics.min.js';
5050
script.onload = script.onreadystatechange = function() {
5151
deferred.resolve($window.analytics);
5252
};

0 commit comments

Comments
 (0)