Move wrapDeferred from background.js to preload.js
It's necessary anywhere that will have to deal with Deferreds.
This commit is contained in:
parent
a824e2b42d
commit
3a151393c5
2 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue