mirror of
https://github.com/electron/electron.git
synced 2026-01-28 08:48:14 -05:00
* refactor: prevent consistent early exception * Use _linkedBinding where possible * Remove dead electronBinding
9 lines
274 B
TypeScript
9 lines
274 B
TypeScript
import { EventEmitter } from 'events';
|
|
|
|
const { NativeTheme, nativeTheme } = process._linkedBinding('electron_common_native_theme');
|
|
|
|
Object.setPrototypeOf(NativeTheme.prototype, EventEmitter.prototype);
|
|
EventEmitter.call(nativeTheme as any);
|
|
|
|
module.exports = nativeTheme;
|