share: don't duplicate if at least one
parent
c43010312f
commit
4ca57bbbe1
|
@ -151,7 +151,7 @@ export default defineComponent({
|
|||
if (immediate) {
|
||||
let share =
|
||||
this.shares.find((s) => !s.hasPassword) ||
|
||||
(await this.createLink(false));
|
||||
(this.shares.length === 0 ? await this.createLink(false) : null);
|
||||
|
||||
if (share) {
|
||||
if ("share" in window.navigator) {
|
||||
|
|
Loading…
Reference in New Issue