Skip to content

Commit 2bba6bb

Browse files
committed
avoiding possible future bugs with document.ready
1 parent b59d4bf commit 2bba6bb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

js/popup.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,4 @@ function triggerView() {
5959
$('#ipLocationInfo').html(infosHtml);
6060
}
6161

62-
$(document).ready(
63-
function () {
64-
fetchGeoLocation();
65-
}
66-
);
62+
$(window).on("load", fetchGeoLocation);

0 commit comments

Comments
 (0)