electron/lib/browser/api/native-theme.ts
2020-03-20 13:28:31 -07:00

8 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;