Commit 751f792b authored by Joel Einbinder's avatar Joel Einbinder Committed by Commit Bot

DevTools: Parse the remote version better for debugging Android devices

Bug: 935942
Change-Id: Ie9e5c340b5b036a7fb9588b1e0c6518478f6317f
Reviewed-on: https://chromium-review.googlesource.com/c/1492932Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636235}
parent 73d2d94c
...@@ -1373,7 +1373,7 @@ ...@@ -1373,7 +1373,7 @@
*/ */
function getRemoteMajorVersion() { function getRemoteMajorVersion() {
try { try {
const remoteVersion = new URLSearchParams(window.location.href).get('remoteVersion'); const remoteVersion = new URLSearchParams(window.location.search).get('remoteVersion');
if (!remoteVersion) if (!remoteVersion)
return null; return null;
const majorVersion = parseInt(remoteVersion.split('.')[0], 10); const majorVersion = parseInt(remoteVersion.split('.')[0], 10);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment