sonstiges
This commit is contained in:
@@ -77,18 +77,19 @@ async function initProfileSelect() {
|
||||
|
||||
initProfileSelect();
|
||||
|
||||
chrome.storage.sync.get(['debugLoggingEnabled'], (result) => {
|
||||
const enabled = Boolean(result && result.debugLoggingEnabled);
|
||||
debugToggle.checked = enabled;
|
||||
});
|
||||
|
||||
debugToggle.addEventListener('change', () => {
|
||||
const enabled = debugToggle.checked;
|
||||
chrome.storage.sync.set({ debugLoggingEnabled: enabled }, () => {
|
||||
updateStatus(`Debug-Logging ${enabled ? 'aktiviert' : 'deaktiviert'}`, true);
|
||||
reloadFacebookTabs();
|
||||
if (debugToggle) {
|
||||
chrome.storage.sync.get(['debugLoggingEnabled'], (result) => {
|
||||
const enabled = Boolean(result && result.debugLoggingEnabled);
|
||||
debugToggle.checked = enabled;
|
||||
});
|
||||
});
|
||||
|
||||
debugToggle.addEventListener('change', () => {
|
||||
const enabled = debugToggle.checked;
|
||||
chrome.storage.sync.set({ debugLoggingEnabled: enabled }, () => {
|
||||
updateStatus(`Debug-Logging ${enabled ? 'aktiviert' : 'deaktiviert'} (wirksam ohne Reload)`, true);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function reloadFacebookTabs() {
|
||||
chrome.tabs.query({ url: ['https://www.facebook.com/*', 'https://facebook.com/*'] }, (tabs) => {
|
||||
|
||||
Reference in New Issue
Block a user