diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/frontend_api.md | 2 | ||||
-rw-r--r-- | docs/integration.md | 2 |
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 |
117 | module.exports = (Ferdi) => { | 117 | module.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 |
154 | module.exports = (Ferdi) => { | 154 | module.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; |