aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/epicgames
diff options
context:
space:
mode:
authorLibravatar André Oliveira <37463445+SpecialAro@users.noreply.github.com>2022-06-07 17:01:37 +0100
committerLibravatar GitHub <noreply@github.com>2022-06-07 16:01:37 +0000
commit54f3affd80401051db8464d6bed8ad4ed1e66fd1 (patch)
treed166ec91c97ec1220787c857f6e3c5004d13889b /recipes/epicgames
parentAdd home assistant recipe (#47) (diff)
downloadferdium-recipes-54f3affd80401051db8464d6bed8ad4ed1e66fd1.tar.gz
ferdium-recipes-54f3affd80401051db8464d6bed8ad4ed1e66fd1.tar.zst
ferdium-recipes-54f3affd80401051db8464d6bed8ad4ed1e66fd1.zip
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 <vraravam@users.noreply.github.com>
Diffstat (limited to 'recipes/epicgames')
-rw-r--r--recipes/epicgames/package.json2
-rw-r--r--recipes/epicgames/webview.js9
2 files changed, 10 insertions, 1 deletions
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 @@
1{ 1{
2 "id": "epicgames", 2 "id": "epicgames",
3 "name": "Epic Games Store", 3 "name": "Epic Games Store",
4 "version": "1.2.0", 4 "version": "1.2.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://www.epicgames.com/id/login?lang=en_US&redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fstore%2Fen-US%2F&noHostRedirect=true" 7 "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 @@
1const _path = _interopRequireDefault(require('path'));
2
3function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj };
5}
6
7module.exports = Ferdium => {
8 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
9}; \ No newline at end of file