♻️ 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 -2
View File
@@ -16,8 +16,9 @@
const _ = imports.gettext.domain('burn-my-windows').gettext;
const ShaderFactory =
typeof global !== 'undefined' ? (await import('../ShaderFactory.js'))?.default : null;
import * as utils from '../utils.js';
const ShaderFactory = await utils.importInShellOnly('./ShaderFactory.js');
//////////////////////////////////////////////////////////////////////////////////////////
// This effect looks a bit like the transporter effect from TOS. //