diff --git a/lib/script/script_manager.dart b/lib/script/script_manager.dart index 7fe56d375..9ebdd7ec1 100644 --- a/lib/script/script_manager.dart +++ b/lib/script/script_manager.dart @@ -119,6 +119,9 @@ class ScriptManager { if (_scriptCache == null) return null; try { + if(_runtime == null){ + _initRuntime(); + } var downloadUrl = _runtime.evaluate("create_download_url('$id')").stringResult; var headers = await runHitomiGetHeaderContent(id.toString());