We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d200573 commit 655ee3dCopy full SHA for 655ee3d
lib/browser/client.js
@@ -54,7 +54,7 @@ function setRegion(region, internal, secure) {
54
55
// check local web protocol,if https secure default set true , if http secure default set false
56
function isHttpsWebProtocol() {
57
- return document && document.location && document.location.protocol === 'https:';
+ return location && location.protocol === 'https:';
58
}
59
60
function Client(options, ctx) {
0 commit comments