修复安全和请求策略问题
This commit is contained in:
@@ -248,9 +248,16 @@
|
||||
function init() {
|
||||
try {
|
||||
console.log('[Init] Start...');
|
||||
|
||||
// Clear existing intervals to prevent duplication on re-init
|
||||
if (backgroundIntervals && backgroundIntervals.length > 0) {
|
||||
backgroundIntervals.forEach(clearInterval);
|
||||
}
|
||||
backgroundIntervals = [];
|
||||
|
||||
// Resource Gauges Time
|
||||
updateGaugesTime();
|
||||
setInterval(updateGaugesTime, 1000);
|
||||
backgroundIntervals.push(setInterval(updateGaugesTime, 1000));
|
||||
|
||||
// Initial footer year
|
||||
if (dom.copyrightYear) {
|
||||
|
||||
Reference in New Issue
Block a user