mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 20:37:58 +01:00
get rid of Cc/Ci, as that's thunderbird incompatible
This commit is contained in:
@@ -405,7 +405,8 @@ vimperator.Events = function () //{{{
|
||||
function waitForPageLoaded()
|
||||
{
|
||||
dump("start waiting in loaded state: " + vimperator.buffer.loaded + "\n");
|
||||
var mainThread = Cc["@mozilla.org/thread-manager;1"].getService(Ci.nsIThreadManager).mainThread;
|
||||
var mainThread = Components.classes["@mozilla.org/thread-manager;1"].
|
||||
getService(Components.interfaces.nsIThreadManager).mainThread;
|
||||
while (mainThread.hasPendingEvents()) // clear queue
|
||||
mainThread.processNextEvent(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user