fix: notify users to switch to the new filename format

Notify users to switch to the new filename format if there're reserved
chars when syncing.

Also, this commit replace all `js/decodeURIComponent` with
`safe-decode-uri-component` to avoid UI crashes.
This commit is contained in:
Tienson Qin
2022-11-06 21:17:29 +08:00
parent a8eb7810a9
commit dd0169b068
15 changed files with 84 additions and 28 deletions

View File

@@ -836,7 +836,7 @@
[label]
(when (and (= 1 (count label))
(string? (last (first label))))
(js/decodeURIComponent (last (first label)))))
(gp-util/safe-decode-uri-component (last (first label)))))
(defn- get-page
[label]