Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add documentation links

Manav Rathi8b0ce5d521df
diff --git a/desktop/src/preload.ts b/desktop/src/preload.ts
index 40b37fe516..11d5d36ec6 100644
--- a/desktop/src/preload.ts
+++ b/desktop/src/preload.ts
@@ -370,7 +370,18 @@ setupLogging();
// These objects exposed here will become available to the JS code in our
// renderer (the web/ code) as `window.ElectronAPIs.*`
//
-// https://www.electronjs.org/docs/latest/tutorial/tutorial-preload
+// - Introduction
+// https://www.electronjs.org/docs/latest/tutorial/tutorial-preload
+//
+// There are a few related concepts at play here, and it might be worthwhile to
+// read their (excellent) documentation to get an understanding;
+//
+// - ContextIsolation:
+// https://www.electronjs.org/docs/latest/tutorial/context-isolation
+//
+// - IPC
+// https://www.electronjs.org/docs/latest/tutorial/ipc
+//
contextBridge.exposeInMainWorld("ElectronAPIs", {
exists,
checkExistsAndCreateDir,