Updated "about" page
This commit is contained in:
parent
b700ef73ad
commit
4184484825
|
@ -26,7 +26,6 @@ These are the maximum link lengths on some apps and browsers.
|
|||
| --------------- | ------------------------- | --------------------------------------- |
|
||||
| Google Chrome | (win) 32,779 (mac) 10,000 | Will not display, but larger links work |
|
||||
| Firefox | >64,000 | |
|
||||
| Microsoft IE 11 | 4,043 | Will not show more than 2,083 |
|
||||
| Microsoft Edge | 2,083 | Anything over 2083 will fail |
|
||||
| Android | 8,192 | |
|
||||
| Safari | Lots | |
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
|
||||
async function goToPreview() {
|
||||
await updateShareUrl()
|
||||
goto($shareUrl)
|
||||
await goto($shareUrl)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
import TopBar from '../components/TopBar.svelte'
|
||||
import Icon from '@iconify/svelte'
|
||||
import CodeView from '../components/CodeView.svelte'
|
||||
import { goto } from '$app/navigation'
|
||||
import { goto } from '$app/navigation'
|
||||
|
||||
let decompressed: string
|
||||
let htmlContent: string
|
||||
|
@ -20,13 +20,12 @@
|
|||
let isPlainText = false
|
||||
|
||||
onMount(async () => {
|
||||
let lang = getLangFromUrl()
|
||||
// Remove github flavored markdown, redundant with markdown
|
||||
lang = lang === 'gflm' ? 'md' : lang
|
||||
|
||||
// extract the part in the url after the hash
|
||||
const hash = window.location.hash.slice(1)
|
||||
if (hash) {
|
||||
let lang = getLangFromUrl()
|
||||
// Remove github flavored markdown, redundant with markdown
|
||||
lang = lang === 'gflm' ? 'md' : lang
|
||||
// decompress the data
|
||||
const { decompress } = await import('$lib/brotli')
|
||||
decompressed = await decompress(hash)
|
||||
|
@ -53,7 +52,7 @@
|
|||
}
|
||||
} else {
|
||||
// Redirect to editor page
|
||||
goto('/editor')
|
||||
await goto('/editor')
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
import { goto } from '$app/navigation'
|
||||
|
||||
goto(
|
||||
'/?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