mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 09:02:47 +08:00
Remove unused code lines
This commit is contained in:
parent
030a0cd698
commit
f08995c390
|
@ -27,9 +27,6 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var authResult = <%=@auth_result.to_client_hash.to_json.html_safe%>;
|
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) {
|
if (!window.opener) {
|
||||||
localStorage.setItem('lastAuthResult', JSON.stringify(authResult));
|
localStorage.setItem('lastAuthResult', JSON.stringify(authResult));
|
||||||
window.location.href = '<%= Discourse.base_url.html_safe %>?authComplete=true';
|
window.location.href = '<%= Discourse.base_url.html_safe %>?authComplete=true';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user