Skip to content

Commit 1797fd6

Browse files
committed
embed: fix asset/2 for tagged sources
1 parent cfd32f6 commit 1797fd6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

embed/embed.v

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,13 @@ struct ExampleApp {
172172

173173
// asset unifies locating example project assets
174174
pub fn (ea ExampleApp) asset(path string, option AssetLoadOption) shy.AssetSource {
175-
$if wasm32_emscripten || android {
175+
$if wasm32_emscripten || (android && !termux) {
176+
if tag := option.tag {
177+
return shy.TaggedSource{
178+
source: path
179+
tag: tag
180+
}
181+
}
176182
return path
177183
}
178184
source := os.join_path(@VMODROOT, 'assets', path)

0 commit comments

Comments
 (0)