mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
remove telemetry completely
This commit is contained in:
@@ -778,9 +778,6 @@ function main(storedSetting: SettingsState) {
|
||||
browser.runtime.sendMessage({ type: 'setDefaultStorage' })
|
||||
}
|
||||
|
||||
if (storedSetting.telemetry && storedSetting.onoff) {
|
||||
}
|
||||
|
||||
const handleDisabled = () => {
|
||||
waitForElm('.code').then(AppendElementsToDisabledPage)
|
||||
}
|
||||
|
||||
@@ -139,7 +139,6 @@ function GetNews(sendResponse: any, url: string) {
|
||||
const DefaultValues: SettingsState = {
|
||||
onoff: true,
|
||||
animatedbk: true,
|
||||
telemetry: false,
|
||||
bksliderinput: "50",
|
||||
transparencyEffects: false,
|
||||
lessonalert: true,
|
||||
|
||||
@@ -16,7 +16,6 @@ export const SettingsContextProvider: React.FC<{ children: ReactNode }> = ({ chi
|
||||
const [settingsState, setSettingsState] = useState<SettingsState>({
|
||||
notificationCollector: false,
|
||||
lessonAlerts: false,
|
||||
telemetry: false,
|
||||
animatedBackground: false,
|
||||
animatedBackgroundSpeed: "0",
|
||||
customThemeColor: "rgba(219, 105, 105, 1)",
|
||||
|
||||
@@ -16,7 +16,6 @@ const useSettingsState = ({ settingsState, setSettingsState }: SettingsProps) =>
|
||||
setSettingsState({
|
||||
notificationCollector: result.notificationcollector,
|
||||
lessonAlerts: result.lessonalert,
|
||||
telemetry: result.telemetry,
|
||||
animatedBackground: result.animatedbk,
|
||||
animatedBackgroundSpeed: result.bksliderinput,
|
||||
customThemeColor: result.selectedColor,
|
||||
@@ -32,7 +31,6 @@ const useSettingsState = ({ settingsState, setSettingsState }: SettingsProps) =>
|
||||
const keyToStateMap = useMemo(() => ({
|
||||
"notificationcollector": "notificationCollector",
|
||||
"lessonalert": "lessonAlerts",
|
||||
"telemetry": "telemetry",
|
||||
"animatedbk": "animatedBackground",
|
||||
"bksliderinput": "animatedBackgroundSpeed",
|
||||
"selectedColor": "customThemeColor",
|
||||
|
||||
@@ -11,10 +11,8 @@ import font from '../resources/fonts/IconFamily.woff'
|
||||
import ThemeCreator from './pages/ThemeCreator';
|
||||
import Store from './pages/Store';
|
||||
|
||||
browser.storage.local.get().then(({ telemetry, DarkMode }) => {
|
||||
browser.storage.local.get().then(({ DarkMode }) => {
|
||||
if (DarkMode) document.documentElement.classList.add('dark');
|
||||
|
||||
if (telemetry === true) {};
|
||||
})
|
||||
|
||||
const style = document.createElement("style");
|
||||
|
||||
@@ -46,11 +46,6 @@ const Settings: React.FC = () => {
|
||||
description: "Customise the overall theme colour of SEQTA Learn.",
|
||||
modifyElement: <PickerSwatch />
|
||||
},
|
||||
{
|
||||
title: "Telemetry",
|
||||
description: "Enables/disables error collecting.",
|
||||
modifyElement: <Switch state={settingsState.telemetry} onChange={(isOn: boolean) => switchChange('telemetry', isOn)} />
|
||||
},
|
||||
{
|
||||
title: "Edit Sidebar Layout",
|
||||
description: "Customise the sidebar layout.",
|
||||
|
||||
@@ -2,7 +2,6 @@ export interface SettingsState {
|
||||
notificationCollector: boolean;
|
||||
selectedTheme: string;
|
||||
lessonAlerts: boolean;
|
||||
telemetry: boolean;
|
||||
animatedBackground: boolean;
|
||||
animatedBackgroundSpeed: string;
|
||||
customThemeColor: string;
|
||||
@@ -54,7 +53,6 @@ export interface MainConfig {
|
||||
};
|
||||
menuorder: any[];
|
||||
notificationcollector: boolean;
|
||||
telemetry: boolean;
|
||||
onoff: boolean;
|
||||
selectedColor: string;
|
||||
shortcuts: Shortcut[];
|
||||
|
||||
@@ -28,10 +28,6 @@ export default class StorageListener {
|
||||
this.handleSelectedColorChange(changes.selectedColor.newValue);
|
||||
break;
|
||||
|
||||
case 'telemetry':
|
||||
this.handleTelemetryChange();
|
||||
break;
|
||||
|
||||
case 'onoff':
|
||||
this.handleOnOffChange();
|
||||
break;
|
||||
@@ -99,10 +95,6 @@ export default class StorageListener {
|
||||
}
|
||||
}
|
||||
|
||||
handleTelemetryChange() {
|
||||
browser.runtime.sendMessage({ type: 'reloadTabs' })
|
||||
}
|
||||
|
||||
handleOnOffChange() {
|
||||
browser.runtime.sendMessage({ type: 'reloadTabs' })
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ export interface SettingsState {
|
||||
};
|
||||
menuorder: any[];
|
||||
notificationcollector: boolean;
|
||||
telemetry: boolean;
|
||||
onoff: boolean;
|
||||
selectedColor: string;
|
||||
originalSelectedColor: string;
|
||||
|
||||
Reference in New Issue
Block a user