Skip to content

Commit a021c2b

Browse files
committed
Do not assume we're loaded over HTTP.
If we're loaded over HTTPS, then most browsers will disallow loading Javascript over HTTP.
1 parent 30724f5 commit a021c2b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

_site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<script type="text/javascript" src="js/load.js"></script>
2525

2626
<!--[if lt IE 9]>
27-
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
27+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
2828
<![endif]-->
2929
</head>
3030

_site/js/controllers/NavbarCtrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
function NavbarCtrl($scope, $rootScope, $route, $location, Data) {
33
$scope.data = Data;
44

5-
$scope.data.host = 'http://' + window.location.host;
5+
$scope.data.host = window.location.protocol + '//' + window.location.host;
66

77
$scope.isActive = function(route) {
88

_site/js/load.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
head.js("js/vendor/json2.js")
55
.js("js/vendor/jsonlint.js")
6-
.js("http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js","js/vendor/angular.min.js", function() {
6+
.js("//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js","js/vendor/angular.min.js", function() {
77
head.js("js/vendor/angular-sanitize.min.js","js/vendor/ng-bootstrap/ui-bootstrap-custom-tpls-0.1.0-SNAPSHOT.min.js","js/vendor/select2/select2.min.js","js/vendor/select2/angular-ui.min.js", "js/app.js", function() {
88
head.js("js/controllers/DropdownCtrl.js")
99
.js("js/controllers/AnalyzerCtrl.js")

0 commit comments

Comments
 (0)