feat: allow passing assetPathPrefix to ThermionViewerWasm to account for Flutter build asset paths
This commit is contained in:
1 parent
d2fb40f317
commit
59bc309f5b
3 files changed
+47
-61
No files matched your search
@@ -35,7 +35,7 @@ class ThermionFlutterWebPlugin extends ThermionFlutterPlatform {
|
||||
var width = window.innerWidth;
|
||||
var height = window.innerHeight;
|
||||
|
||||
var viewer = ThermionViewerWasm();
|
||||
var viewer = ThermionViewerWasm(assetPathPrefix: "/assets/");
|
||||
await viewer.initialize(width, height, uberArchivePath: uberArchivePath);
|
||||
return viewer;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user