From 47af9e6a6f3f4aa6251a0d16b1f5139c19079901 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 28 May 2021 00:01:45 +0200 Subject: [skype] Context isolation support --- recipes/skype/webview-unsafe.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 recipes/skype/webview-unsafe.js (limited to 'recipes/skype/webview-unsafe.js') 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 @@ +const nameDescriptor = Object.getOwnPropertyDescriptor(Plugin.prototype, 'name'); +const getName = nameDescriptor.get; +Object.defineProperty(Plugin.prototype, 'name', { + ...nameDescriptor, + get() { + return getName.call(this).replace('Chromium', 'Chrome'); + }, +}); -- cgit v1.2.3-70-g09d2