Move wrapDeferred from background.js to preload.js
It's necessary anywhere that will have to deal with Deferreds.
This commit is contained in:

committed by
Scott Nonnenberg

parent
a824e2b42d
commit
3a151393c5
@@ -22,12 +22,6 @@
|
||||
console.log(e);
|
||||
};
|
||||
|
||||
window.wrapDeferred = function(deferred) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
deferred.then(resolve, reject);
|
||||
});
|
||||
};
|
||||
|
||||
console.log('background page reloaded');
|
||||
console.log('environment:', window.config.environment);
|
||||
|
||||
|
Reference in New Issue
Block a user