From 7db1a8419a4870d3598ca429729b26a7983f004e Mon Sep 17 00:00:00 2001 From: Anny Yang Date: Fri, 23 Feb 2024 13:44:17 -0800 Subject: [PATCH] fix: clarifies what preload script runs before --- 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 */