Avoid protocol relative URL to support apps using file protocol

This commit is contained in:
Tim Schaub
2014-03-24 14:57:43 -06:00
parent b613c9cde7
commit 9ce7d6ea45
5 changed files with 18 additions and 4 deletions

View File

@@ -54,6 +54,14 @@ ol.ENABLE_WEBGL = true;
ol.LEGACY_IE_SUPPORT = false;
/**
* The page is loaded using HTTPS.
* @const
* @type {boolean}
*/
ol.IS_HTTPS = goog.global.location.protocol === 'https:';
/**
* Whether the current browser is legacy IE
* @const