Commit 20f041d2 authored by Joel Einbinder's avatar Joel Einbinder Committed by Commit Bot

DevTools: Correctly return the major version in devtools_compatibility

Bug: 898245
Change-Id: I591cecc162cb86d5925ec67b4bbe6b12cd72a0c2
Reviewed-on: https://chromium-review.googlesource.com/c/1313830Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605045}
parent 9f3e50ad
......@@ -1276,7 +1276,7 @@
return null;
const majorVersion = parseInt(remoteVersion.split('.')[0], 10);
return majorVersion;
} finally {
} catch (e) {
return null;
}
}
......
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