Skip to content

A platform for community discussion. Free, open, simple.

Remove unused code lines

Vinoth Kannanf08995c39016
diff --git a/app/views/users/omniauth_callbacks/complete.html.erb b/app/views/users/omniauth_callbacks/complete.html.erb
index 6edbf45b16c..c4dd3c9db4c 100644
--- a/app/views/users/omniauth_callbacks/complete.html.erb
+++ b/app/views/users/omniauth_callbacks/complete.html.erb
@@ -27,9 +27,6 @@
<script type="text/javascript">
var authResult = <%=@auth_result.to_client_hash.to_json.html_safe%>;
- // On facebook browser, just redirect and don't close
- var ua = navigator.userAgent || navigator.vendor || window.opera;
-
if (!window.opener) {
localStorage.setItem('lastAuthResult', JSON.stringify(authResult));
window.location.href = '<%= Discourse.base_url.html_safe %>?authComplete=true';