diff options
author | Bennett <hello@vantezzen.io> | 2020-10-03 12:32:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-03 12:32:23 +0200 |
commit | 1c9f8061d5c8e448314892e4482003a6a1453ceb (patch) | |
tree | ea44378445de9590252f6cb986fe8574853aae74 /recipes/skype/webview.js | |
parent | Merge pull request #309 from tofran/fix/zoho-icon (diff) | |
parent | Spoof Chrome plugins for Skype (diff) | |
download | ferdium-recipes-1c9f8061d5c8e448314892e4482003a6a1453ceb.tar.gz ferdium-recipes-1c9f8061d5c8e448314892e4482003a6a1453ceb.tar.zst ferdium-recipes-1c9f8061d5c8e448314892e4482003a6a1453ceb.zip |
Merge pull request #308 from kris7t/skype-calls
Spoof Chrome plugins for Skype
Diffstat (limited to 'recipes/skype/webview.js')
-rw-r--r-- | recipes/skype/webview.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes/skype/webview.js b/recipes/skype/webview.js index 4d5292d..2d2ba41 100644 --- a/recipes/skype/webview.js +++ b/recipes/skype/webview.js | |||
@@ -3,6 +3,15 @@ | |||
3 | const { remote: { BrowserWindow } } = require("electron"); | 3 | const { remote: { BrowserWindow } } = require("electron"); |
4 | const path = require('path'); | 4 | const path = require('path'); |
5 | 5 | ||
6 | const nameDescriptor = Object.getOwnPropertyDescriptor(Plugin.prototype, 'name'); | ||
7 | const getName = nameDescriptor.get; | ||
8 | Object.defineProperty(Plugin.prototype, 'name', { | ||
9 | ...nameDescriptor, | ||
10 | get() { | ||
11 | return getName.call(this).replace('Chromium', 'Chrome'); | ||
12 | } | ||
13 | }); | ||
14 | |||
6 | module.exports = (Franz, settings) => { | 15 | module.exports = (Franz, settings) => { |
7 | const getMessages = function getMessages() { | 16 | const getMessages = function getMessages() { |
8 | let count = 0; | 17 | let count = 0; |