electron/lib/browser/api/native-theme.ts

9 lines
259 B
TypeScript
Raw Normal View History

2020-03-20 20:28:31 +00:00
import { EventEmitter } from 'events';
2020-03-20 20:28:31 +00:00
const { NativeTheme, nativeTheme } = process.electronBinding('native_theme');
2020-03-20 20:28:31 +00:00
Object.setPrototypeOf(NativeTheme.prototype, EventEmitter.prototype);
EventEmitter.call(nativeTheme as any);
2020-03-20 20:28:31 +00:00
module.exports = nativeTheme;