-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DTRA] Maryia/FEQ-1465/TrackJS error '404 : GET https://smarttrader.deriv.com/en/user/top_up_virtual_pop_up.html & dialog.html #611
Conversation
Preview Link: https://pr-611.smarttrader-preview.pages.dev
|
@@ -15,7 +15,7 @@ const showPopup = (options) => { | |||
} | |||
if (cache[options.url]) { | |||
callback(options); | |||
} else { | |||
} else if (options.url) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how could options.url
trigger since its commented out ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need this condition because we don't want the code below to get executed if there is no options.url (e.g. when it's commented out like in our case).
Changes:
To fix TrackJS error '404 : GET https://smarttrader.deriv.com/en/user/top_up_virtual_pop_up.html' by preventing the XMLHttp request for an unused 'user/top_up_virtual_pop_up' URL and by preventing appending an unavailable TopUpVirtualPopup node to the DOM.
This also fixes another TrackJS error '404 : GET https://smarttrader.deriv.com/en/dialog.html' by preventing the XMLHttp request for an unused 'dialog' URL and by preventing appending an unavailable Dialog node to the DOM.
Type of change