mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-01 10:18:54 -04:00
Improved browser history navigation in conjunction with instant loading
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user