mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-30 02:16:59 -04:00
account home in history
This commit is contained in:
parent
ca4cb615b0
commit
a441b81986
3 changed files with 22 additions and 39 deletions
|
@ -1,8 +1,8 @@
|
|||
extends Resource
|
||||
class_name History
|
||||
|
||||
var history: Array[String]
|
||||
var index := -1
|
||||
var history: Array[String] = [""]
|
||||
var index := 0
|
||||
|
||||
|
||||
func get_current() -> String:
|
||||
|
@ -15,7 +15,7 @@ func can_forw() -> bool:
|
|||
|
||||
|
||||
func can_back() -> bool:
|
||||
return index > -1
|
||||
return index > 0
|
||||
|
||||
|
||||
func add(url: String) -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue