Fix cache issues with workers in firefox
This commit is contained in:
parent
2259d1b6ac
commit
b084b892bd
@ -19,6 +19,8 @@ var debug = function (msg) { console.log(msg); };
|
|||||||
var init = function (client, cb) {
|
var init = function (client, cb) {
|
||||||
debug('SW INIT');
|
debug('SW INIT');
|
||||||
|
|
||||||
|
require(['/api/config?cb=' + (+new Date()).toString(16)], function (ApiConfig) {
|
||||||
|
if (ApiConfig.requireConf) { require.config(ApiConfig.requireConf); }
|
||||||
require([
|
require([
|
||||||
'/common/requireconfig.js'
|
'/common/requireconfig.js'
|
||||||
], function (RequireConfig) {
|
], function (RequireConfig) {
|
||||||
@ -142,6 +144,7 @@ var init = function (client, cb) {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
self.addEventListener('message', function (e) {
|
self.addEventListener('message', function (e) {
|
||||||
|
|||||||
@ -19,6 +19,8 @@ var debug = function (msg) { console.log(msg); };
|
|||||||
var init = function (client, cb) {
|
var init = function (client, cb) {
|
||||||
debug('SharedW INIT');
|
debug('SharedW INIT');
|
||||||
|
|
||||||
|
require(['/api/config?cb=' + (+new Date()).toString(16)], function (ApiConfig) {
|
||||||
|
if (ApiConfig.requireConf) { require.config(ApiConfig.requireConf); }
|
||||||
require([
|
require([
|
||||||
'/common/requireconfig.js'
|
'/common/requireconfig.js'
|
||||||
], function (RequireConfig) {
|
], function (RequireConfig) {
|
||||||
@ -143,6 +145,7 @@ var init = function (client, cb) {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
onconnect = function(e) {
|
onconnect = function(e) {
|
||||||
|
|||||||
@ -7,9 +7,11 @@ localStorage = {
|
|||||||
getItem: function (k) { return localStorage[k]; }
|
getItem: function (k) { return localStorage[k]; }
|
||||||
};
|
};
|
||||||
|
|
||||||
require([
|
require(['/api/config?cb=' + (+new Date()).toString(16)], function (ApiConfig) {
|
||||||
|
if (ApiConfig.requireConf) { require.config(ApiConfig.requireConf); }
|
||||||
|
require([
|
||||||
'/common/requireconfig.js'
|
'/common/requireconfig.js'
|
||||||
], function (RequireConfig) {
|
], function (RequireConfig) {
|
||||||
require.config(RequireConfig());
|
require.config(RequireConfig());
|
||||||
require([
|
require([
|
||||||
'/common/common-util.js',
|
'/common/common-util.js',
|
||||||
@ -97,4 +99,5 @@ require([
|
|||||||
msgEv.fire(e);
|
msgEv.fire(e);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user