From d313fc00b4721bcb3db0d58433eeac701f3374c7 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:39:49 +0100 Subject: [PATCH] fix: better prompt not supported message in window-setup.ts (#45046) 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". Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Quinn --- 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);