mirror of
https://github.com/placeholder-soft/prodigyapi.git
synced 2026-01-12 22:44:57 +08:00
Strip HTML tags from ToC element with regex before showing in title bar (#1120)
This commit is contained in:
committed by
Matthew Peveler
parent
06478b9273
commit
f390aba9a2
@@ -80,9 +80,9 @@
|
||||
if (window.history.replaceState) {
|
||||
window.history.replaceState(null, "", best);
|
||||
}
|
||||
var thisTitle = $best.data("title")
|
||||
var thisTitle = $best.data("title");
|
||||
if (thisTitle !== undefined && thisTitle.length > 0) {
|
||||
document.title = thisTitle + " – " + originalTitle;
|
||||
document.title = thisTitle.replace(htmlPattern, "") + " – " + originalTitle;
|
||||
} else {
|
||||
document.title = originalTitle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user