This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If we know the extension's ID and a path to one of its web-accessible resources, we can quietly check for presence. | |
(function (w, a) { | |
var checkExt = function (callback) { | |
var hazExt = false; | |
var img = new Image(); | |
img.onload = function () { | |
hazExt = true; | |
}; | |
// need to know the right protocol for Firefox and Edge extensions |