From f397dc74e9c032903717ea5f223f307e7652888b Mon Sep 17 00:00:00 2001 From: Anny Yang Date: Mon, 26 Feb 2024 13:50:47 -0800 Subject: [PATCH] fix: clarifies what preload script runs before (#892) --- preload.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/preload.js b/preload.js index b188cb14f3..f26017e876 100644 --- a/preload.js +++ b/preload.js @@ -1,7 +1,8 @@ /** - * The preload script runs before. It has access to web APIs - * as well as Electron's renderer process modules and some - * polyfilled Node.js functions. + * The preload script runs before `index.html` is loaded + * in the renderer. It has access to web APIs as well as + * Electron's renderer process modules and some polyfilled + * Node.js functions. * * https://www.electronjs.org/docs/latest/tutorial/sandbox */