mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
fix: respect prefers reduced motion by default
This commit is contained in:
1 parent
e19020066a
commit
4d38af402f
1 file changed
+5
@@ -283,6 +283,11 @@ async function UpdateCurrentValues() {
|
||||
browser.runtime.onInstalled.addListener(function (event) {
|
||||
browser.storage.local.remove(['justupdated']);
|
||||
browser.storage.local.remove(['data']);
|
||||
|
||||
if (event.reason == 'install' && window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
||||
browser.storage.local.set({ animations: false });
|
||||
}
|
||||
|
||||
UpdateCurrentValues();
|
||||
if ( event.reason == 'install', event.reason == 'update' ) {
|
||||
browser.storage.local.set({ justupdated: true });
|
||||
|
||||
Reference in new issue
Block a user