From 6b702d4db86a9cae660c2c26d479bf8860a3d3e5 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 9 Feb 2021 21:01:05 -0500 Subject: [PATCH] Fix: Minor bug --- src/index.js | 6 +++--- src/misc/Interactions.js | 10 ++++++---- 2 files changed, 9 insertions(+), 7 deletions(-) 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; + } }; }