mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 12:52:28 +01:00
Push lines to the MOW where appropriate
This commit is contained in:
@@ -1313,13 +1313,13 @@ const liberator = (function () //{{{
|
||||
return true;
|
||||
},
|
||||
|
||||
callInMainThread: function (callback)
|
||||
callInMainThread: function (callback, self)
|
||||
{
|
||||
let mainThread = threadManager.mainThread;
|
||||
if (!threadManager.isMainThread)
|
||||
mainThread.dispatch({ run: callback }, mainThread.DISPATCH_NORMAL);
|
||||
mainThread.dispatch({ run: callback.call(self) }, mainThread.DISPATCH_NORMAL);
|
||||
else
|
||||
callback();
|
||||
callback.call(self);
|
||||
},
|
||||
|
||||
threadYield: function (flush, interruptable)
|
||||
|
||||
Reference in New Issue
Block a user