Web Inspector: Keep Web Inspector window alive across process swaps (PSON) (Local...
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Protocol / InspectorBackend.js
index 76b62cf..579a93e 100644 (file)
@@ -163,7 +163,7 @@ InspectorBackendClass = class InspectorBackendClass
     runAfterPendingDispatches(script)
     {
         // FIXME: Should this respect pending dispatches in all connections?
-        InspectorBackend.backendConnection.runAfterPendingDispatches(script);
+        WI.mainTarget.connection.runAfterPendingDispatches(script);
     }
 
     activateDomain(domainName, activationDebuggableTypes)