Skip to content

Commit

Permalink
fix: modify "RegExp list"/"preset" will make "preset"/"RegExp list" u…
Browse files Browse the repository at this point in the history
…navailable
  • Loading branch information
chunibyocola committed Jul 5, 2021
1 parent 4c81693 commit fb40d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/public/text-preprocessing.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ getLocalStorage(['textPreprocessingRegExpList', 'textPreprocessingPreset'], (opt
textPreprocessingPreset = options.textPreprocessingPreset ?? {};
});
listenOptionsChange(['textPreprocessingRegExpList', 'textPreprocessingPreset'], (changes) => {
textPreprocessingRegExpList = changes.textPreprocessingRegExpList ?? [];
textPreprocessingPreset = changes.textPreprocessingPreset ?? {};
'textPreprocessingRegExpList' in changes && (textPreprocessingRegExpList = changes.textPreprocessingRegExpList ?? []);
'textPreprocessingPreset' in changes && (textPreprocessingPreset = changes.textPreprocessingPreset ?? {});
});

0 comments on commit fb40d3a

Please sign in to comment.