Skip to content

Commit

Permalink
avoiding possible future bugs with document.ready
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutCevik committed Nov 13, 2020
1 parent b59d4bf commit 2bba6bb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,4 @@ function triggerView() {
$('#ipLocationInfo').html(infosHtml);
}

$(document).ready(
function () {
fetchGeoLocation();
}
);
$(window).on("load", fetchGeoLocation);

0 comments on commit 2bba6bb

Please sign in to comment.