Skip to content

Commit

Permalink
Fix pathname check for published insiders (#144133)
Browse files Browse the repository at this point in the history
Fixes #143030
  • Loading branch information
mjbvz committed Mar 1, 2022
1 parent c1be6a0 commit 2df16bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/webview/browser/pre/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ onDomReady(() => {
}

const contentDocument = assertIsDefined(newFrame.contentDocument);
if (contentDocument.location.pathname === '/fake.html' && contentDocument.readyState !== 'loading') {
if (contentDocument.location.pathname.endsWith('/fake.html') && contentDocument.readyState !== 'loading') {
clearInterval(interval);
onFrameLoaded(contentDocument);
}
Expand Down

0 comments on commit 2df16bb

Please sign in to comment.