mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 11:14:14 +01:00
Support Firefox 45 (without e10s).
This commit is contained in:
@@ -18,7 +18,7 @@ function withCallbacks(fn) {
|
||||
return function wrapper(...args) {
|
||||
let deferred = Promise.defer();
|
||||
function resolve(arg) { deferred.resolve(arg); }
|
||||
function reject(arg) { deferred.reject(arg); }
|
||||
function reject(arg) { deferred.reject(arg); }
|
||||
fn.apply(this, [[resolve, reject, deferred]].concat(args));
|
||||
return deferred.promise;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user