electron/docs/fiddles/quick-start
Will Anderson b6ff12ef7f
docs: update Quick Start Guide for Electron 12 (#28223)
* docs: Update Quick Start Guide for Electron 12

With `contextIsolation` enabled by default in Electron 12, the Getting Started Guide no longer works as it is written. In order for the basic example to display values from `process.versions`, we need to add a `preload.js` to the example.

* fix: annotate preload code block with a language

* docs: update quick-start Fiddle example to use preload to provide version info

* fix: ensure example files end in a newline

* docs: add security warning to instructions for turning off contextIsolation

Co-authored-by: John Kleinschmidt <jkleinsc@github.com>

* docs: treat preload as an adjective instead of a noun

Co-authored-by: John Kleinschmidt <jkleinsc@github.com>

Co-authored-by: John Kleinschmidt <jkleinsc@github.com>
2021-03-16 19:45:38 -04:00
..
index.html docs: update Quick Start Guide for Electron 12 (#28223) 2021-03-16 19:45:38 -04:00
main.js docs: update Quick Start Guide for Electron 12 (#28223) 2021-03-16 19:45:38 -04:00
preload.js docs: update Quick Start Guide for Electron 12 (#28223) 2021-03-16 19:45:38 -04:00