Skip to content

Commit

Permalink
Fix adapter's error on taobao platform (cocos#17734)
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song authored Oct 17, 2024
1 parent a72d870 commit b34203f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions pal/wasm/wasm-minigame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,7 @@ function getPlatformBinaryUrl (binaryUrl: string): Promise<string> {
if (XIAOMI) {
resolve(`src/cocos-js/${binaryUrl}`);
} if (TAOBAO_MINIGAME && WASM_SUBPACKAGE) {
if (minigame.isDevTool) {
resolve(`cocos-js/${binaryUrl}`);
} else {
resolve(`__ccWasmAssetSubpkg__/${basename(binaryUrl)}`);
}
resolve(`__ccWasmAssetSubpkg__/${basename(binaryUrl)}`);
} else {
resolve(`cocos-js/${binaryUrl}`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const localStorage = {
},

removeItem(key) {
my.removeStorageSync(key)
my.removeStorageSync({ key })
},

clear() {
Expand Down

0 comments on commit b34203f

Please sign in to comment.