fix: incorrect page title when 'hls__' is opened (#8697)

* dev: move 'hls-file?' to pdf-utils
* dev: use 'hls-file?' instead of string comparison
* fix: window title when hls file opened
This commit is contained in:
Adam
2023-02-28 10:10:33 +03:00
committed by GitHub
parent 6108aa1036
commit 6f45107408
5 changed files with 11 additions and 10 deletions

View File

@@ -572,7 +572,7 @@
(t :untitled)
;; The page-name-in-block generated by the auto-complete is not page-name-sanitized
(string/starts-with? page-name "hls__")
(pdf-utils/hls-file? page-name)
(pdf-utils/fix-local-asset-pagename page-name)
(not= (util/safe-page-name-sanity-lc original-name) page-name-in-block)