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

9 lines
274 B
TypeScript
Raw Normal View History

2020-03-20 20:28:31 +00:00
import { EventEmitter } from 'events';
const { NativeTheme, nativeTheme } = process._linkedBinding('electron_common_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;