This commit is contained in:
Benjamin Pasero 2019-05-27 11:16:31 +02:00
parent 5c3b542295
commit f0f9dd7a12

View file

@ -317,8 +317,7 @@ export class ElectronWindow extends Disposable {
this.lifecycleService.when(LifecyclePhase.Restored).then(async () => {
let isAdmin: boolean;
if (isWindows) {
const isElevated = await import('native-is-elevated');
isAdmin = isElevated();
isAdmin = (await import('native-is-elevated'))();
} else {
isAdmin = isRootUser();
}