Skip to content

Instantly share code, notes, and snippets.

View Insayt's full-sized avatar
🏠
Working from home

Alex Insayt Insayt

🏠
Working from home
  • Rostov-on-Don
View GitHub Profile
@mrmlnc
mrmlnc / electron-api.md
Last active August 25, 2023 07:23
Electron API

Базовые возможности

process — это объект, позволяющий получить информацию о типе запущенного процесса (рендеринг или основной процесс), версию Chrome и Electron, а также путь до выполняемого js-файла.

Пользовательские элементы DOM:

Объект File — это абстракция над нативным File, передающая стандартному HTML5 file API путь к физическому расположению файла в файловой системе пользователя.

/**
* Possible options:
*
* once: will ensure the callback list can only be fired once in the triggered event.
*
*
* memory: will keep track of previous values and will call any callback functions added
* after the list has been fired right away with the latest 'memorized' values
* @param options {{once:boolean, memory: boolean}|undefined}
* @constructor