Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Icecreamdudes committed Oct 10, 2024
1 parent c26d17e commit e5ed7c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,11 @@ addLayer("i", {
})
function callAlert(message, imageUrl, imagePosition = 'top') {
return new Promise((resolve) => {
// Check if a modal already exists on the page
if (document.querySelector('.modal-container')) {
return; // If a modal is already present, exit the function
}

// Create modal container
const modalContainer = document.createElement('div');
modalContainer.classList.add('modal-container');
Expand Down Expand Up @@ -590,7 +595,6 @@ function callAlert(message, imageUrl, imagePosition = 'top') {
}
});
}
1
document.addEventListener('keydown', function(event) {
if(event.keyCode == 81 && (hasUpgrade("cp", 18) || player.universe != 1.5) && hasUpgrade("ad", 13) && options.toggleHotkey) {
player.tab = "i"
Expand Down

0 comments on commit e5ed7c9

Please sign in to comment.