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

Unified Diff: Source/devtools/front_end/devtools.html

Issue 727773002: [DevTools] Allow embedding remote frontend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/Runtime.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/devtools.html
diff --git a/Source/devtools/front_end/devtools.html b/Source/devtools/front_end/devtools.html
index be7306408760e40dc3715f713e6d8e084b854d67..e7ee435b4ccd63e6e919187a7f9012d4529de292 100644
--- a/Source/devtools/front_end/devtools.html
+++ b/Source/devtools/front_end/devtools.html
@@ -14,7 +14,13 @@
</head>
<body class="undocked" id="-blink-dev-tools">
<script>
-document.write("<iframe class='inspector-app-iframe' src='inspector.html" + window.location.search + "'></iframe>");
+(function() {
+ var remoteFrontendUrl = Runtime.queryParam("remoteFrontendUrl");
+ var src = remoteFrontendUrl
+ ? decodeURIComponent(remoteFrontendUrl) + Runtime.constructQueryParams(["remoteFrontendUrl"])
+ : "inspector.html" + window.location.search;
+ document.write("<iframe class='inspector-app-iframe' src='" + src + "'></iframe>");
+})();
</script>
</body>
</html>
« no previous file with comments | « Source/devtools/front_end/Runtime.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698