Skip to content

Commit

Permalink
fix: Web版でキャッシュが効いてしまう問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hideki0403 committed Jul 16, 2022
1 parent 539f7f7 commit b9ff886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const betterJapanese = {
if (!this.isRegisteredHook) this.initAfterLoad()

// Web版で既にDOMが構築されていた場合はDOMを再構成するスクリプトを読み込む (一部の翻訳が適用されないため)
if (!App && Game.ready) Game.LoadMod('https://pages.yukineko.me/better-japanese/rebuild.js')
if (!App && Game.ready) Game.LoadMod(`https://pages.yukineko.me/better-japanese/rebuild.js?nocache=${Date.now()}`)

this.log('Initialized')
},
Expand Down
2 changes: 1 addition & 1 deletion src/web/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if (language && conf.replaceJP) {
ModLanguage('JA', JSON.parse(language))
}

Game.LoadMod(`https://pages.yukineko.me/better-japanese/assets/main.js?v=${Game.version}`)
Game.LoadMod(`https://pages.yukineko.me/better-japanese/assets/main.js?nocache=${Date.now()}`)

0 comments on commit b9ff886

Please sign in to comment.