mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: ginify NativeTheme (#24673)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user