From dc74092a090cb6448951036e951ae0f4d775cc98 Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 16 Dec 2024 15:38:25 -0500 Subject: [PATCH] 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". --- lib/renderer/window-setup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/renderer/window-setup.ts b/lib/renderer/window-setup.ts index 9f48ea3941e5..0fab8eb77ecb 100644 --- a/lib/renderer/window-setup.ts +++ b/lib/renderer/window-setup.ts @@ -15,7 +15,7 @@ export const windowSetup = (isWebView: boolean, isHiddenPage: boolean) => { // But we do not support prompt(). 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);