Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1841)

Unified Diff: Source/devtools/front_end/host/Platform.js

Issue 388963004: DevTools: get rid of the global capabilities set. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/console/ConsolePanel.js ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/host/Platform.js
diff --git a/Source/devtools/front_end/host/Platform.js b/Source/devtools/front_end/host/Platform.js
index 5e11b7943068e26b0e1645805c89b5ff70fcb896..64c4490159f00269c881aebbbb9b9091c115ebb2 100644
--- a/Source/devtools/front_end/host/Platform.js
+++ b/Source/devtools/front_end/host/Platform.js
@@ -158,4 +158,12 @@ WebInspector.monospaceFontFamily = function()
break;
}
return WebInspector._monospaceFontFamily;
-}
+}
+
+/**
+ * @return {boolean}
+ */
+WebInspector.isWorkerFrontend = function()
+{
+ return !!WebInspector.queryParam("dedicatedWorkerId") || !!WebInspector.queryParam("isSharedWorker");
+}
« no previous file with comments | « Source/devtools/front_end/console/ConsolePanel.js ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698