Skip to content

Commit

Permalink
Fix: Minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Feb 10, 2021
1 parent 6fc0548 commit 6b702d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class TinderAssistant {

localStorage.setItem('TinderAutopilot/ProfileData', JSON.stringify(profileData));

new Sidebar();
new Instagram();
Sidebar();
Instagram();
logger('Welcome to Tinder Autopilot');
});
}
}

setTimeout(() => {
new TinderAssistant();
TinderAssistant();
}, 500);
10 changes: 6 additions & 4 deletions src/misc/Interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ class Interactions {
.parentElement.querySelector('button:nth-of-type(2)')
.click();
logger('Closing add to homescreen modal');
cb();
return true;
}
} catch (e) {}
} catch (e) {
return false;
}
};

closeModal = () => {
Expand All @@ -46,10 +47,11 @@ class Interactions {
if (modal) {
document.querySelector('#modal-manager > div').click();
logger('Closing modal');
cb();
return true;
}
} catch (e) {}
} catch (e) {
return false;
}
};
}

Expand Down

0 comments on commit 6b702d4

Please sign in to comment.