mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-05 11:41:01 +01:00
Merge pull request #568 from floydpink/feature-fix-535
Fix the Google OAuth Redirect Bug - #535
This commit is contained in:
@@ -15,6 +15,13 @@ angular.element(document).ready(function() {
|
||||
//Fixing facebook bug with redirect
|
||||
if (window.location.hash === '#_=_') window.location.hash = '#!';
|
||||
|
||||
// Fixing google bug with redirect
|
||||
if (window.location.href[window.location.href.length - 1] === '#' &&
|
||||
// for just the error url (origin + /#)
|
||||
(window.location.href.length - window.location.origin.length) === 2) {
|
||||
window.location.href = window.location.origin + '/#!';
|
||||
}
|
||||
|
||||
//Then init the app
|
||||
angular.bootstrap(document, [ApplicationConfiguration.applicationModuleName]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user