Skip to content

Commit

Permalink
fix - bad for instagram
Browse files Browse the repository at this point in the history
  • Loading branch information
Mralexandresys authored Nov 24, 2023
1 parent f8e5512 commit 90ff243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipes/instagram-direct-messages/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ setInterval(() => {

module.exports = Ferdium => {
const getMessages = () => {
const element = document.querySelector('a[href^="/direct/inbox"]');
const element = document.querySelector('a[href^="/direct/inbox"] span');
Ferdium.setBadge(
element.textContent ? Ferdium.safeParseInt(element.textContent) : 0,
);
Expand Down
2 changes: 1 addition & 1 deletion recipes/instagram/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = (Ferdium, settings) => {
);

const getMessages = () => {
const element = document.querySelector('a[href^="/direct/inbox"]');
const element = document.querySelector('a[href^="/direct/inbox"] span');
if (element) {
Ferdium.setBadge(
element.textContent ? Ferdium.safeParseInt(element.textContent) : 0,
Expand Down

0 comments on commit 90ff243

Please sign in to comment.