mirror of
https://github.com/Zenithsiz/dynatos.git
synced 2026-02-08 04:55:59 +00:00
Fixed initial page title being lost due to mistake in dynatos_title.
This commit is contained in:
parent
805e5fd445
commit
d31148bb4d
@ -30,15 +30,14 @@ impl Title {
|
||||
{
|
||||
let title = title.into();
|
||||
|
||||
// Set and add the title to the stack
|
||||
self::set_title(&title);
|
||||
let title_idx = TITLE_STACK.with_borrow_mut(|stack| {
|
||||
// If no title exists, add the current one
|
||||
if stack.is_empty() {
|
||||
stack.push(Some(self::cur_title()));
|
||||
}
|
||||
|
||||
// Then add ours
|
||||
// Then set and add ours
|
||||
self::set_title(&title);
|
||||
let title_idx = stack.len();
|
||||
stack.push(Some(title));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user