launcher: cjs -> esm

This commit is contained in:
jean-emmanuel 2025-09-11 19:57:17 +02:00
parent 034542f5e2
commit 7ec9e64dc0
6 changed files with 34 additions and 42 deletions

View file

@ -1,12 +1,13 @@
var {ipcRenderer} = require('electron'),
remote = require('@electron/remote'),
{dialog} = remote.require('electron'),
import {ipcRenderer} from 'electron'
import remote from '@electron/remote'
import {icon} from '../client/ui/utils'
import html from 'nanohtml/lib/browser'
import raw from 'nanohtml/raw'
import terminal from './terminal'
var {dialog} = remote.require('electron'),
fs = remote.require('fs'),
{settings} = remote.getGlobal('launcherSharedGlobals'),
{icon} = require('../client/ui/utils'),
html = require('nanohtml/lib/browser'),
raw = require('nanohtml/raw'),
terminal = require('./terminal'),
options_remote = settings.read('options')
class Settings {
@ -259,4 +260,4 @@ class Settings {
}
module.exports = new Settings()
export default new Settings()