Это мой текущий код: < /p>
Код: Выделить всё
let str = "Please update your script!"
let str2 = "[insert previous site title]"
setInterval(function(){document.title = str}, 1000)
setTimeout(function(){setInterval(function(){document.title = str2}, 1000)}, 1000)
Код: Выделить всё
function updateDialog(str, str2) {
document.title = str
setTimeout(function(){document.title = str2}, 1000)
}
setInterval(updateDialog("Please update your script!", "[insert previous site name]"), 1000)
Любая причина, почему это не работает ожидаемый>
Подробнее здесь: https://stackoverflow.com/questions/795 ... oesnt-work