also cache manifest.json into offline
This commit is contained in:
parent
c8c4e3267d
commit
e28608f86e
2 changed files with 4 additions and 1 deletions
|
|
@ -52,6 +52,7 @@ exports.getSwAdditionalEntries = () => {
|
|||
'*.png',
|
||||
'*.woff',
|
||||
'mesher.js',
|
||||
'manifest.json',
|
||||
'worldSaveWorker.js',
|
||||
`textures/entity/squid/squid.png`,
|
||||
// everything but not .map
|
||||
|
|
|
|||
|
|
@ -402,7 +402,9 @@ async function connect (connectOptions: ConnectOptions) {
|
|||
setLoadingScreenStatus(`Loading data for ${version}`)
|
||||
if (!document.fonts.check('1em mojangles')) {
|
||||
// todo instead re-render signs on load
|
||||
await document.fonts.load('1em mojangles').catch(() => { })
|
||||
await document.fonts.load('1em mojangles').catch(() => {
|
||||
console.error('Failed to load font, signs wont be rendered correctly')
|
||||
})
|
||||
}
|
||||
await window._MC_DATA_RESOLVER.promise // ensure data is loaded
|
||||
await downloadSoundsIfNeeded()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue