Avoid protocol relative URL to support apps using file protocol
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user