fix continuous cookie sync event listener startup init

This commit is contained in:
Simon 2025-03-12 22:49:23 +07:00
parent b07acde00e
commit f9bef73540
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -314,7 +314,7 @@ function handleMessage(request, sender, sendResponse) {
browserType.runtime.onMessage.addListener(handleMessage);
browserType.runtime.onInstalled.addListener(() => {
browserType.runtime.onStartup.addListener(() => {
browserType.storage.local.get('continuousSync', data => {
handleContinuousCookie(data?.continuousSync?.checked || false);
});