From fae35abda2953e38106fccd12c7d34226bb54a7c Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Thu, 29 Apr 2021 19:55:52 +0530 Subject: Fixing issue with image preview not working in gChat. (#476) --- recipes/hangoutschat/index.js | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'recipes') diff --git a/recipes/hangoutschat/index.js b/recipes/hangoutschat/index.js index 819e06b..2c8b220 100644 --- a/recipes/hangoutschat/index.js +++ b/recipes/hangoutschat/index.js @@ -3,20 +3,4 @@ var os = require('os') // just pass through Franz module.exports = Franz => class HangoutsChat extends Franz { - // Method to add headers to requests from Hangouts Chat's webview - modifyRequestHeaders() { - return [{ - headers: { 'origin': 'https://chat.google.com' }, - requestFilters: { - urls: ['*://*/*'] - } - }] - } - - overrideUserAgent() { - if (os.platform() == 'linux') - return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" - else - return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; - } }; -- cgit v1.2.3-54-g00ecf