Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jan 6, 2024
1 parent d195b54 commit 8701a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/kuromoji.patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ BrowserDictionaryLoader.prototype.loadArrayBuffer = async function (url, callbac
const stroage = await kvsEnvStorage({
name: "kuromoji",
version: 2,
upgrade({ kvs, oldVersion, newVersion }) {
async upgrade({ kvs, oldVersion, newVersion }) {
if (oldVersion === 1) {
kvs.clear();
await kvs.clear();
}
}
});
Expand Down

0 comments on commit 8701a1b

Please sign in to comment.