Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Commit

Permalink
Try normalizing to a relative path for determining version of the exa…
Browse files Browse the repository at this point in the history
…mple
  • Loading branch information
cthrax committed Apr 27, 2015
1 parent 0216c0f commit 6470ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/assets/scripts/controllers/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ angular.module("angular-google-maps-example", ['uiGmapgoogle-maps'])
});

var versionUrl = (window.location.host === "rawgithub.com" || window.location.host === "rawgit.com") ?
"http://rawgit.com/angular-ui/angular-google-maps/2.0.X/package.json" : "/package.json";
"../package.json" : "/package.json";

$http.get(versionUrl).success(function (data) {
if (!data)
Expand Down

0 comments on commit 6470ef4

Please sign in to comment.