Improved browser history navigation in conjunction with instant loading

This commit is contained in:
squidfunk
2020-02-21 17:36:04 +01:00
parent 1020953fa5
commit 674e3456f8
12 changed files with 148 additions and 52 deletions

View File

@@ -22,7 +22,7 @@
import * as ClipboardJS from "clipboard"
import { NEVER, Observable, Subject, fromEventPattern } from "rxjs"
import { mapTo, shareReplay, tap } from "rxjs/operators"
import { mapTo, share, tap } from "rxjs/operators"
import { getElements } from "observables"
import { renderClipboard } from "templates"
@@ -76,7 +76,7 @@ export function setupClipboard(
new ClipboardJS(".md-clipboard").on("success", next)
})
.pipe(
shareReplay(1)
share()
)
/* Display notification for clipboard event */