Skip to content

Commit

Permalink
Switch to is_web() from utils
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangSenff authored Mar 26, 2024
1 parent 8fd98ed commit 90c3cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/godot-firebase/auth/auth.gd
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func _ready() -> void:
tcp_timer.timeout.connect(_tcp_stream_timer)

Utilities.fix_http_request(self)
if OS.get_name() == "HTML5" or OS.get_name() == "Web":
if Utilities.is_web():
_local_uri += "tmp_js_export.html"


Expand Down Expand Up @@ -281,7 +281,7 @@ func get_auth_with_redirect(provider: AuthProvider) -> void:
url_endpoint+=key+"="+provider.params[key]+"&"
url_endpoint += provider.params.redirect_type+"="+_local_uri
url_endpoint = _clean_url(url_endpoint)
if OS.get_name() == "HTML5" and OS.has_feature("web"):
if Utilities.is_web() and OS.has_feature("JavaScript"):
JavaScriptBridge.eval('window.location.replace("' + url_endpoint + '")')
elif Engine.has_singleton(_INAPP_PLUGIN) and OS.get_name() == "iOS":
#in app for ios if the iOS plugin exists
Expand Down

0 comments on commit 90c3cd7

Please sign in to comment.