♻️ Use utility method to import module in Shell process only

This commit is contained in:
Simon Schneegans
2023-09-09 06:05:15 +02:00
parent 006cc593a3
commit 767035e313
23 changed files with 76 additions and 45 deletions
+3 -3
View File
@@ -165,11 +165,11 @@ void main() {
"use strict";
const GObject = imports.gi.GObject;
const _ = imports.gettext.domain("burn-my-windows").gettext;
import { ShaderFactory } from "../ShaderFactory.js";
import * as utils from "../utils.js";
const ShaderFactory = await utils.importInShellOnly("./ShaderFactory.js");
//////////////////////////////////////////////////////////////////////////////////////////
// This effect ... //