From 54f3affd80401051db8464d6bed8ad4ed1e66fd1 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Tue, 7 Jun 2022 17:01:37 +0100 Subject: Add webview.js to some services that were generated without it. (#42) This had blocked users from manually generating a `service.css` which is what the documentation recommends as self-help to override styling. Co-authored-by: Vijay A --- recipes/epicgames/package.json | 2 +- recipes/epicgames/webview.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 recipes/epicgames/webview.js (limited to 'recipes/epicgames') diff --git a/recipes/epicgames/package.json b/recipes/epicgames/package.json index 14a8d4c..5025b41 100644 --- a/recipes/epicgames/package.json +++ b/recipes/epicgames/package.json @@ -1,7 +1,7 @@ { "id": "epicgames", "name": "Epic Games Store", - "version": "1.2.0", + "version": "1.2.1", "license": "MIT", "config": { "serviceURL": "https://www.epicgames.com/id/login?lang=en_US&redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fstore%2Fen-US%2F&noHostRedirect=true" diff --git a/recipes/epicgames/webview.js b/recipes/epicgames/webview.js new file mode 100644 index 0000000..46366f4 --- /dev/null +++ b/recipes/epicgames/webview.js @@ -0,0 +1,9 @@ +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +module.exports = Ferdium => { + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); +}; \ No newline at end of file -- cgit v1.2.3-54-g00ecf