mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 02:17:27 -04:00
save user_id in case of crash
This commit is contained in:
parent
a2b2964916
commit
8aee706761
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ func get_user_id() -> void:
|
|||
if code == 200:
|
||||
AnalyticsEvents.user_id = body.get_string_from_utf8()
|
||||
DataSaver.set_value("analytics", "user_id", AnalyticsEvents.user_id)
|
||||
DataSaver.save_data()
|
||||
else: Debug.logclr("Request create_user_id failed. Code " + str(code), Color.RED)
|
||||
|
||||
var err = await Backend.request(url, callback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue