fix: inverting the order of mime rows wasn't considered until restart
Massimo Melina committed
Aug 5, 2023 at 20:14 UTC
9d2d96e39ac9c8f592c20250e94609d4d7c49fc6
1 file changed
+4
src/config.ts
+4
@@ -179,6 +179,10 @@ function setConfig1(k: string, newV: unknown, saveChanges=true, valueVersion?: V
179
cfgEvents.emit(CONFIG_CHANGE_EVENT_PREFIX + k, getConfig(k), was, valueVersion)
180
if (saveChanges)
181
saveConfigAsap()
182
+
183
+ function same(a: any, b: any) { // we want to consider order of object entries as well (eg: mime)
184
+ return a === b || JSON.stringify(a) === JSON.stringify(b)
185
+ }
186
}
187
188
const saveDebounced = debounceAsync(async () => {