You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #292, we need to store tools status and values for each tab before making webextension the main way to use a11y.css.
This is somehow working in Nightly with my profile (extensions and custom config) but not in an empty profile:
functionstoreTextSpacingStatus(strStatus){// Get a11y.css stored levelsletgetStatus=browser.storage.local.get("textSpacingStatus");getStatus.then(// when we got something(item)=>{if(item&&item.textSpacingStatus){// Get current tab IDbrowser.tabs.query({active: true,currentWindow: true}).then((tabs)=>{// Get current stored valuelettextSpacingStatus=item.textSpacingStatus;// Add or replace current tab's valuetextSpacingStatus[tabs[0].id]={"status": strStatus};// And set it back to the storageletsetting=browser.storage.local.set({ textSpacingStatus });setting.then(null,onError);// just in case});}});}
I wasn't able to find out why this is working… Or rather why this is not working with a new profile.
Related to #292, we need to store tools status and values for each tab before making webextension the main way to use a11y.css.
This is somehow working in Nightly with my profile (extensions and custom config) but not in an empty profile:
I wasn't able to find out why this is working… Or rather why this is not working with a new profile.
FWIW, Mozilla's webextension-polyfill is loaded everywhere within webextension.Please help :D
The text was updated successfully, but these errors were encountered: