mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-06 01:14:31 +02:00
fix(core): composer loader bootstrap
This commit is contained in:
parent
407974578d
commit
977d8b4327
@ -172,7 +172,7 @@ class ComposerHooks: Feature("ComposerHooks") {
|
|||||||
context.native.setComposerLoader("""
|
context.native.setComposerLoader("""
|
||||||
const i = setInterval(() => {
|
const i = setInterval(() => {
|
||||||
try {
|
try {
|
||||||
require('composer_core/src/DeviceBridge').toString();
|
require('composer_core/src/DeviceBridge').getDisplayWidth();
|
||||||
clearInterval(i);
|
clearInterval(i);
|
||||||
(() => { const _getImportsFunctionName = "$getImportsFunctionName"; $loaderScript })();
|
(() => { const _getImportsFunctionName = "$getImportsFunctionName"; $loaderScript })();
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user