aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-19 07:26:25 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-19 09:11:55 +0530
commit7517a409a1a502c747eb4598492a88cec4e8d58c (patch)
tree7b6b603b0831845ac07fe6ab8e4c52bf19c8e850 /docs
parentMerge pull request #713 from kris7t/fix-api-access (diff)
downloadferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.tar.gz
ferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.tar.zst
ferdium-recipes-7517a409a1a502c747eb4598492a88cec4e8d58c.zip
fix: fix js error; styling
Diffstat (limited to 'docs')
-rw-r--r--docs/frontend_api.md2
-rw-r--r--docs/integration.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/frontend_api.md b/docs/frontend_api.md
index 59a2467..cceda9c 100644
--- a/docs/frontend_api.md
+++ b/docs/frontend_api.md
@@ -115,7 +115,7 @@ Runs `fn` on every notification created by the service before sending them to th
115```js 115```js
116// messenger integration 116// messenger integration
117module.exports = (Ferdi) => { 117module.exports = (Ferdi) => {
118 const getMessages = function getMessages() { 118 const getMessages = () => {
119 let count = document.querySelectorAll('._5fx8:not(._569x),._1ht3:not(._569x)').length; 119 let count = document.querySelectorAll('._5fx8:not(._569x),._1ht3:not(._569x)').length;
120 const messageRequestsElement = document.querySelector('._5nxf'); 120 const messageRequestsElement = document.querySelector('._5nxf');
121 if (messageRequestsElement) { 121 if (messageRequestsElement) {
diff --git a/docs/integration.md b/docs/integration.md
index 38a5a32..08164fc 100644
--- a/docs/integration.md
+++ b/docs/integration.md
@@ -152,7 +152,7 @@ The `webview.js` is the actual script that will be loaded into the webview. Here
152```js 152```js
153// orat.io integration 153// orat.io integration
154module.exports = (Ferdi) => { 154module.exports = (Ferdi) => {
155 function getMessages() { 155 const getMessages = () => {
156 let direct = 0; 156 let direct = 0;
157 let indirect = 0; 157 let indirect = 0;
158 const FerdiData = document.querySelector("#FerdiMessages").dataset; 158 const FerdiData = document.querySelector("#FerdiMessages").dataset;