mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
9 lines
259 B
TypeScript
9 lines
259 B
TypeScript
import { EventEmitter } from 'events';
|
|
|
|
const { NativeTheme, nativeTheme } = process.electronBinding('native_theme');
|
|
|
|
Object.setPrototypeOf(NativeTheme.prototype, EventEmitter.prototype);
|
|
EventEmitter.call(nativeTheme as any);
|
|
|
|
module.exports = nativeTheme;
|