Skip to content

Commit

Permalink
Add note about incognito mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Aug 6, 2021
1 parent 3f4879a commit c2fab30
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 @@ -199,7 +199,7 @@ function getVsCodeApiScript(allowMultipleAPIAcquire, state) {
/** @type {Promise<void>} */
const workerReady = new Promise(async (resolve, reject) => {
if (!areServiceWorkersEnabled()) {
return reject(new Error('Service Workers are not enabled in browser. Webviews will not work.'));
return reject(new Error('Service Workers are not enabled. Webviews will not work. Try disabling private/incognito mode.'));
}

const swPath = `service-worker.js${self.location.search}`;
Expand Down

0 comments on commit c2fab30

Please sign in to comment.