Move wrapDeferred from background.js to preload.js

It's necessary anywhere that will have to deal with Deferreds.
This commit is contained in:
Scott Nonnenberg 2018-03-07 14:56:56 -08:00 committed by Scott Nonnenberg
parent a824e2b42d
commit 3a151393c5
No known key found for this signature in database
GPG key ID: 5F82280C35134661
2 changed files with 5 additions and 6 deletions

View file

@ -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);