Skip to content

Commit

Permalink
Update save-load.js
Browse files Browse the repository at this point in the history
Remove "Hey this domain is going to be removed" message
  • Loading branch information
EruptionGuy authored Mar 3, 2024
1 parent 8657c1a commit 52a7632
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/save-load.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,27 @@ export default async function register(self) {
}, 1000)
}
/* Domain change swal */
if (window.location.hostname == "scratch-for-discord.com") {
Swal.fire({
title: 'Hey this domain is going to be removed',
text: "Do you want to be taken to the new domain?",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes!',
cancelButtonText: 'No.'
}).then((result) => {
if (result.isConfirmed) {
console.log('redirecting...');
window.location.assign("https://s4d.discodes.xyz");
} else {
autoSave()
};
});
} else {
autoSave()
}
// if (window.location.hostname == "scratch-for-discord.com") {
// Swal.fire({
// title: 'Hey this domain is going to be removed',
// text: "Do you want to be taken to the new domain?",
// icon: 'warning',
// showCancelButton: true,
// confirmButtonColor: '#3085d6',
// cancelButtonColor: '#d33',
// confirmButtonText: 'Yes!',
// cancelButtonText: 'No.'
// }).then((result) => {
// if (result.isConfirmed) {
// console.log('redirecting...');
// window.location.assign("https://s4d.discodes.xyz");
// } else {
// autoSave()
// };
// });
// } else {
// autoSave()
// }
}

async function handle(workspace) {
Expand Down

0 comments on commit 52a7632

Please sign in to comment.