fix caching on favicon

pull/1/head
Caleb James DeLisle 7 years ago
parent d9f5e3638e
commit 2dacd57e76

@ -1,4 +1,4 @@
(function () { define(['/api/config'], function (ApiConfig) {
var Module = {}; var Module = {};
var isSupported = Module.isSupported = function () { var isSupported = Module.isSupported = function () {
@ -41,8 +41,8 @@
} }
}; };
var DEFAULT_MAIN = '/customize/main-favicon.png'; var DEFAULT_MAIN = '/customize/main-favicon.png?' + ApiConfig.requireConf.urlArgs;
var DEFAULT_ALT = '/customize/alt-favicon.png'; var DEFAULT_ALT = '/customize/alt-favicon.png?' + ApiConfig.requireConf.urlArgs;
var createFavicon = function () { var createFavicon = function () {
console.log("creating favicon"); console.log("creating favicon");
@ -111,13 +111,5 @@
}; };
}; };
if (typeof(module) !== 'undefined' && module.exports) {
module.exports = Module;
} else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) {
define(function () {
return Module; return Module;
}); });
} else {
window.Visible = Module;
}
}());
Loading…
Cancel
Save