diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-05-28 00:01:45 +0200 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-07-24 00:23:17 +0000 |
commit | 47af9e6a6f3f4aa6251a0d16b1f5139c19079901 (patch) | |
tree | b2006e8aab2d74bff91b9c5bbcafc8654aca0f8c /recipes/skype/webview-unsafe.js | |
parent | [googlecalendar] Context isolation support (diff) | |
download | ferdium-recipes-47af9e6a6f3f4aa6251a0d16b1f5139c19079901.tar.gz ferdium-recipes-47af9e6a6f3f4aa6251a0d16b1f5139c19079901.tar.zst ferdium-recipes-47af9e6a6f3f4aa6251a0d16b1f5139c19079901.zip |
[skype] Context isolation support
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 | }); | ||