mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fix
This commit is contained in:
@@ -66,10 +66,10 @@ export class ShareDialog {
|
|||||||
this.uploading.style.display = ''
|
this.uploading.style.display = ''
|
||||||
this.upload_begin.style.display = 'none'
|
this.upload_begin.style.display = 'none'
|
||||||
try {
|
try {
|
||||||
const id = await save_share(get_state().files[''])
|
await save_share(get_state().files[''])
|
||||||
this.url = new URL(window.location)
|
// window location was changed inside save_share, now it points out to a
|
||||||
this.url.searchParams.append('share_id', id)
|
// new share
|
||||||
this.url_share.value = this.url
|
this.url_share.value = window.location.toString()
|
||||||
this.upload_finish.style.display = ''
|
this.upload_finish.style.display = ''
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
alert(e.message)
|
alert(e.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user