diff options
author | Sandeep Somavarapu <sasomava@microsoft.com> | 2021-07-26 16:49:08 +0300 |
---|---|---|
committer | Sandeep Somavarapu <sasomava@microsoft.com> | 2021-07-26 16:50:00 +0300 |
commit | 460d3c40b1917a8dc7e37c63158d284f7ca8e5ec (patch) | |
tree | 8b661462de37244cb5524c8561b6245d8cc09e2e /resources | |
parent | 4d4e92713c21d5d7105f08d5a34d654334482bc1 (diff) |
fix yarn web
Diffstat (limited to 'resources')
-rw-r--r-- | resources/web/code-web.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/web/code-web.js b/resources/web/code-web.js index 6773985431f..c4bac6317de 100644 --- a/resources/web/code-web.js +++ b/resources/web/code-web.js @@ -424,7 +424,7 @@ async function handleRoot(req, res) { ); const openFileUrl = args['open-file'] ? url.parse(args['open-file'], true) : undefined; let selection; - if (openFileUrl.hash) { + if (openFileUrl?.hash) { const rangeMatch = /L(?<startLineNumber>\d+)(?::(?<startColumn>\d+))?((?:-L(?<endLineNumber>\d+))(?::(?<endColumn>\d+))?)?/.exec(openFileUrl.hash); if (rangeMatch?.groups) { const { startLineNumber, startColumn, endLineNumber, endColumn } = rangeMatch.groups; |