diff --git a/src/index.js b/src/index.js index 77664d1..3239608 100644 --- a/src/index.js +++ b/src/index.js @@ -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); diff --git a/src/misc/Interactions.js b/src/misc/Interactions.js index 0af1348..9614e28 100644 --- a/src/misc/Interactions.js +++ b/src/misc/Interactions.js @@ -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 = () => { @@ -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; + } }; }