mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:32:46 +08:00
Temporarily remove FB browser redirect
This commit is contained in:
parent
ba5993ae79
commit
f6eb5e823b
|
@ -28,11 +28,11 @@
|
|||
|
||||
// On facebook browser, just redirect and don't close
|
||||
var ua = navigator.userAgent || navigator.vendor || window.opera;
|
||||
if ((ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1)) {
|
||||
window.location.href = '<%= Discourse.base_url.html_safe %>';
|
||||
} else {
|
||||
// if ((ua.indexOf("FBAN") > -1) || (ua.indexOf("FBAV") > -1)) {
|
||||
// window.location.href = '<%= Discourse.base_url.html_safe %>';
|
||||
// } else {
|
||||
window.close();
|
||||
}
|
||||
// }
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue
Block a user