Move _promisify call after imports
This commit is contained in:
parent
bc59c51c9e
commit
b2b5bcbc55
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,6 @@ import Gio from 'gi://Gio';
|
||||||
import GLib from 'gi://GLib';
|
import GLib from 'gi://GLib';
|
||||||
import NM from 'gi://NM';
|
import NM from 'gi://NM';
|
||||||
|
|
||||||
Gio._promisify(Gio.Subprocess.prototype, 'communicate_utf8_async', 'communicate_utf8_finish');
|
|
||||||
|
|
||||||
import { parseIwLinkOutput, createEmptyIwLinkInfo } from './wifiGeneration.js';
|
import { parseIwLinkOutput, createEmptyIwLinkInfo } from './wifiGeneration.js';
|
||||||
import {
|
import {
|
||||||
type WifiConnectionInfo,
|
type WifiConnectionInfo,
|
||||||
|
|
@ -40,6 +38,8 @@ export {
|
||||||
isConnected,
|
isConnected,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Gio._promisify(Gio.Subprocess.prototype, 'communicate_utf8_async', 'communicate_utf8_finish');
|
||||||
|
|
||||||
const PLACEHOLDER = '--' as const;
|
const PLACEHOLDER = '--' as const;
|
||||||
|
|
||||||
export class WifiInfoService {
|
export class WifiInfoService {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue