refactor: ginify NativeTheme (#24673)

This commit is contained in:
Jeremy Rose
2020-07-22 11:01:30 -07:00
committed by GitHub
parent 10bf50e1fd
commit 734753dd7a
3 changed files with 27 additions and 24 deletions

View File

@@ -1,8 +1,3 @@
import { EventEmitter } from 'events';
const { NativeTheme, nativeTheme } = process._linkedBinding('electron_common_native_theme');
Object.setPrototypeOf(NativeTheme.prototype, EventEmitter.prototype);
EventEmitter.call(nativeTheme as any);
const { nativeTheme } = process._linkedBinding('electron_common_native_theme');
module.exports = nativeTheme;