(function () { if (window.location.pathname.replace(/\/$/, '') !== '/settings/tasks-background' && window.location.pathname.replace(/\/$/, '') !== '/settings/tasks-scheduled') { return; } try { var url = new URL(window.location.href); if (!url.searchParams.has('message')) { return; } url.searchParams.delete('message'); window.history.replaceState({}, document.title, url.pathname + (url.search ? url.search : '') + url.hash); } catch (_error) { // Ignore URL cleanup failures. } }());