Skip to content

Commit

Permalink
Allow gchat login page
Browse files Browse the repository at this point in the history
Add reference to workspace.google.com to redirect to login page
  • Loading branch information
iconeb authored Aug 17, 2023
1 parent 6770f56 commit a8b3105
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions recipes/hangoutschat/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ function _interopRequireDefault(obj) {
const _path = _interopRequireDefault(require('path'));

module.exports = Ferdium => {
// if the user is on googlechat landing page, go to the login page.
if (
location.hostname === 'workspace.google.com' &&
location.href.includes('products/chat/')
) {
location.href =
'https://accounts.google.com/AccountChooser?continue=https://chat.google.com/?referrer=2';
}

// class corresponding to the red badge that is visible for direct messages
const directMessageSelector = 'div.V6.CL.su.ahD.X9.Y2 span.akt span.XU';

Expand Down

0 comments on commit a8b3105

Please sign in to comment.