Skip to content

Commit

Permalink
Add recipe for Proton Pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Serene-Arc committed Mar 30, 2024
1 parent 7177ac9 commit 812bd18
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
55 changes: 55 additions & 0 deletions recipes/proton-pass/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions recipes/proton-pass/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = Ferdium =>
class ProtonPass extends Ferdium {
overrideUserAgent() {
return 'Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0';
}
};
9 changes: 9 additions & 0 deletions recipes/proton-pass/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "proton-pass",
"name": "Proton Pass",
"version": "1.0.0",
"license": "MIT",
"config": {
"serviceURL": "https://pass.proton.me/"
}
}
16 changes: 16 additions & 0 deletions recipes/proton-pass/webview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}

const _path = _interopRequireDefault(require('path'));

module.exports = Ferdium => {
// TODO: If your Proton Pass service has unread messages, uncomment these lines to implement the logic for updating the badges
// const getMessages = () => {
// // TODO: Insert your notification-finding code here
// Ferdium.setBadge(0, 0);
// };
// Ferdium.loop(getMessages);

Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
};

0 comments on commit 812bd18

Please sign in to comment.