fix: better prompt not supported message in window-setup.ts (#45017)
Update window-setup.ts The message should simply read "is not supported" or, alternatively, "is not, and will not, be supported", but not "is and will not be supported".
This commit is contained in:
parent
f89813401d
commit
dc74092a09
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export const windowSetup = (isWebView: boolean, isHiddenPage: boolean) => {
|
||||||
|
|
||||||
// But we do not support prompt().
|
// But we do not support prompt().
|
||||||
window.prompt = function () {
|
window.prompt = function () {
|
||||||
throw new Error('prompt() is and will not be supported.');
|
throw new Error('prompt() is not supported.');
|
||||||
};
|
};
|
||||||
if (contextIsolationEnabled) internalContextBridge.overrideGlobalValueFromIsolatedWorld(['prompt'], window.prompt);
|
if (contextIsolationEnabled) internalContextBridge.overrideGlobalValueFromIsolatedWorld(['prompt'], window.prompt);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue