Merge branch 'main' into userquin/feat-add-inert-content-again

userquin/feat-add-inert-content-again
Divyansh Singh 2 years ago committed by GitHub
commit 3d690b5d03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -329,7 +329,7 @@ function shouldHotReload(payload: PageDataPayload): boolean {
} }
function updateHistory(href: string) { function updateHistory(href: string) {
if (inBrowser && href !== normalizeHref(location.href)) { if (inBrowser && normalizeHref(href) !== normalizeHref(location.href)) {
// save scroll position before changing url // save scroll position before changing url
history.replaceState({ scrollPosition: window.scrollY }, document.title) history.replaceState({ scrollPosition: window.scrollY }, document.title)
history.pushState(null, '', href) history.pushState(null, '', href)

@ -186,7 +186,7 @@ const KNOWN_EXTENSIONS = new Set(
'p7c,p7m,p7r,p7s,pbm,pdf,pfx,php,png,ppt,pptx,ps,pub,qt,rar,roff,rtf,' + 'p7c,p7m,p7r,p7s,pbm,pdf,pfx,php,png,ppt,pptx,ps,pub,qt,rar,roff,rtf,' +
'rtx,ser,sh,spc,svg,swf,t,tar,tcl,tex,texi,texinfo,tgz,tif,tiff,tr,ts,' + 'rtx,ser,sh,spc,svg,swf,t,tar,tcl,tex,texi,texinfo,tgz,tif,tiff,tr,ts,' +
'tsv,ttf,txt,ua,viv,vivo,vsd,wav,weba,webm,webp,woff,woff2,xbm,xhtml,' + 'tsv,ttf,txt,ua,viv,vivo,vsd,wav,weba,webm,webp,woff,woff2,xbm,xhtml,' +
'xls,xlsx,xml,xul,zip' 'xls,xlsx,xml,xul,zip,conf'
).split(',') ).split(',')
) )

Loading…
Cancel
Save