mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 01:46:35 +00:00
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:
@@ -11,6 +11,10 @@
|
||||
(defonce MIN-SCALE 0.25)
|
||||
(defonce DELTA_SCALE 1.05)
|
||||
|
||||
(defn hls-file?
|
||||
[filename]
|
||||
(and filename (string? filename) (string/starts-with? filename "hls__")))
|
||||
|
||||
(defn clean-asset-path-prefix
|
||||
[path]
|
||||
(when (string? path)
|
||||
@@ -177,7 +181,7 @@
|
||||
[filename]
|
||||
(when-not (string/blank? filename)
|
||||
(let [local-asset? (re-find #"[0-9]{13}_\d$" filename)
|
||||
hls? (re-find #"^hls__" filename)
|
||||
hls? (hls-file? filename)
|
||||
len (count filename)]
|
||||
(if (or local-asset? hls?)
|
||||
(-> filename
|
||||
|
||||
Reference in New Issue
Block a user