Skip to content

Commit

Permalink
Fix pageProtocol always being false
Browse files Browse the repository at this point in the history
  • Loading branch information
q-- committed May 9, 2016
1 parent bb4ee3f commit 1ae5740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/support-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var checkNativeFeatures = oncePromise(function (resolve) {
TypedArrays: ("ArrayBuffer" in global),
BlobURLs: ("URL" in global),
requestAnimationFrame: ("requestAnimationFrame" in global),
pageProtocol: (location.protocol == "http:" && location.protocol == "https:"),
pageProtocol: (location.protocol == "http:" || location.protocol == "https:"),
canvas: ("getContext" in document.createElement("canvas")),
APNG: false
};
Expand Down Expand Up @@ -62,4 +62,4 @@ var ifNeeded = function (ignoreNativeAPNG) {
module.exports = {
checkNativeFeatures: checkNativeFeatures,
ifNeeded: ifNeeded
};
};

0 comments on commit 1ae5740

Please sign in to comment.