diff options
Diffstat (limited to 'recipes/skype/webview-unsafe.js')
-rw-r--r-- | recipes/skype/webview-unsafe.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes/skype/webview-unsafe.js b/recipes/skype/webview-unsafe.js new file mode 100644 index 0000000..28f5e0e --- /dev/null +++ b/recipes/skype/webview-unsafe.js | |||
@@ -0,0 +1,8 @@ | |||
1 | const nameDescriptor = Object.getOwnPropertyDescriptor(Plugin.prototype, 'name'); | ||
2 | const getName = nameDescriptor.get; | ||
3 | Object.defineProperty(Plugin.prototype, 'name', { | ||
4 | ...nameDescriptor, | ||
5 | get() { | ||
6 | return getName.call(this).replace('Chromium', 'Chrome'); | ||
7 | }, | ||
8 | }); | ||