const isOpened = new Promise((resolve) => {
// Check if the console is opened
console.info('This message is hidden when console is open.');
setTimeout(() => {
resolve(!console.info);
}, 1000);
});
isOpened.then((isConsoleOpened) => {
if (isConsoleOpened) {
// Redirect to homepage if console is opened
window.location.href = 'https://freedrivemovie.com';
}
});