From 155c4b832281348c16be1f4ef667e6e23dbf1bd8 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Fri, 27 Aug 2021 18:13:24 +0530 Subject: chore: normalized all recipes to ensure compatibility with es6 (#639) - Removed some calls to set badge with '0' all the time. - Removed all 'sourceMaps' since they are all outdated atm. --- recipes/franz-custom-website/index.js | 2 +- recipes/franz-custom-website/package.json | 2 +- recipes/franz-custom-website/webview.js | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'recipes/franz-custom-website') diff --git a/recipes/franz-custom-website/index.js b/recipes/franz-custom-website/index.js index db3da5e..c0f91cb 100644 --- a/recipes/franz-custom-website/index.js +++ b/recipes/franz-custom-website/index.js @@ -1,4 +1,4 @@ -module.exports = Franz => class CustomWebsite extends Franz { +module.exports = Ferdi => class CustomWebsite extends Ferdi { async validateUrl(url) { return true; } diff --git a/recipes/franz-custom-website/package.json b/recipes/franz-custom-website/package.json index d56cff7..dc84b6c 100644 --- a/recipes/franz-custom-website/package.json +++ b/recipes/franz-custom-website/package.json @@ -1,7 +1,7 @@ { "id": "franz-custom-website", "name": "Custom Website", - "version": "1.0.5", + "version": "1.1.0", "license": "MIT", "repository": "https://github.com/meetfranz/recipe-custom-website", "config": { diff --git a/recipes/franz-custom-website/webview.js b/recipes/franz-custom-website/webview.js index 6df0aaa..ca6a9f7 100644 --- a/recipes/franz-custom-website/webview.js +++ b/recipes/franz-custom-website/webview.js @@ -1,5 +1,7 @@ -const path = require('path'); +const _path = _interopRequireDefault(require('path')); -module.exports = Franz => { - Franz.injectCSS(path.join(__dirname, 'style.css')); +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + Ferdi.injectCSS(_path.default.join(__dirname, 'style.css')); }; -- cgit v1.2.3-54-g00ecf