discourse/app/assets/javascripts/auto-redirect.js

8 lines
191 B
JavaScript

// discourse-skip-module
(function() {
const path = document.getElementById("data-auto-redirect").dataset.path;
setTimeout(function() {
window.location.href = path;
}, 2000);
})();