mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fix toggle + fix seqta toggle not responsive
This commit is contained in:
@@ -14,3 +14,6 @@ dist/
|
|||||||
|
|
||||||
# Sentry Config File
|
# Sentry Config File
|
||||||
.env.sentry-build-plugin
|
.env.sentry-build-plugin
|
||||||
|
|
||||||
|
# Sentry Config File
|
||||||
|
.env.sentry-build-plugin
|
||||||
|
|||||||
@@ -4,3 +4,6 @@
|
|||||||
|
|
||||||
# Sentry Config File
|
# Sentry Config File
|
||||||
.env.sentry-build-plugin
|
.env.sentry-build-plugin
|
||||||
|
|
||||||
|
# Sentry Config File
|
||||||
|
.env.sentry-build-plugin
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export const SettingsContextProvider: React.FC<{ children: ReactNode }> = ({ chi
|
|||||||
const [settingsState, setSettingsState] = useState<SettingsState>({
|
const [settingsState, setSettingsState] = useState<SettingsState>({
|
||||||
notificationCollector: false,
|
notificationCollector: false,
|
||||||
lessonAlerts: false,
|
lessonAlerts: false,
|
||||||
telemetry: true,
|
telemetry: false,
|
||||||
animatedBackground: false,
|
animatedBackground: false,
|
||||||
animatedBackgroundSpeed: "0",
|
animatedBackgroundSpeed: "0",
|
||||||
customThemeColor: "rgba(219, 105, 105, 1)",
|
customThemeColor: "rgba(219, 105, 105, 1)",
|
||||||
|
|||||||
@@ -371,7 +371,6 @@ export function RemoveBackground() {
|
|||||||
bk[0].remove();
|
bk[0].remove();
|
||||||
bk2[0].remove();
|
bk2[0].remove();
|
||||||
bk3[0].remove();
|
bk3[0].remove();
|
||||||
console.log('it deleted???')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function waitForElm(selector: any) {
|
export function waitForElm(selector: any) {
|
||||||
|
|||||||
@@ -152,6 +152,7 @@ function GetNews(sendResponse: any) {
|
|||||||
const DefaultValues: any = {
|
const DefaultValues: any = {
|
||||||
onoff: true,
|
onoff: true,
|
||||||
animatedbk: true,
|
animatedbk: true,
|
||||||
|
telemetry: false,
|
||||||
bksliderinput: 50,
|
bksliderinput: 50,
|
||||||
transparencyEffects: false,
|
transparencyEffects: false,
|
||||||
lessonalert: true,
|
lessonalert: true,
|
||||||
|
|||||||
@@ -28,6 +28,14 @@ export default class StorageListener {
|
|||||||
this.handleSelectedColorChange(changes.selectedColor.newValue);
|
this.handleSelectedColorChange(changes.selectedColor.newValue);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'telemetry':
|
||||||
|
this.handleTelemetryChange();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'onoff':
|
||||||
|
this.handleOnOffChange();
|
||||||
|
break;
|
||||||
|
|
||||||
case 'shortcuts':
|
case 'shortcuts':
|
||||||
this.handleShortcutsChange(
|
this.handleShortcutsChange(
|
||||||
changes.shortcuts.oldValue,
|
changes.shortcuts.oldValue,
|
||||||
@@ -90,6 +98,14 @@ export default class StorageListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleTelemetryChange() {
|
||||||
|
browser.runtime.sendMessage({ type: 'reloadTabs' })
|
||||||
|
}
|
||||||
|
|
||||||
|
handleOnOffChange() {
|
||||||
|
browser.runtime.sendMessage({ type: 'reloadTabs' })
|
||||||
|
}
|
||||||
|
|
||||||
handleNotificationCollectorChange(details: any) {
|
handleNotificationCollectorChange(details: any) {
|
||||||
if (details.newValue) {
|
if (details.newValue) {
|
||||||
enableNotificationCollector();
|
enableNotificationCollector();
|
||||||
|
|||||||
Reference in New Issue
Block a user