Skip to content

Is there a way to disable or remove the built in Masks? #2040

Answered by abicorios
Jcontre905 asked this question in Q&A
Discussion options

You must be logged in to vote

@Jcontre905, to remove masks, in the app/masks/index.ts file remove CN_MASKS and EN_MASKS usage. It will be replacing

export const BUILTIN_MASKS: Mask[] = [...CN_MASKS, ...EN_MASKS].map((m) =>
  BUILTIN_MASK_STORE.add(m),
);

to

export const BUILTIN_MASKS: Mask[] = [];

Also you can remove files app/masks/cn.ts and app\masks\en.ts, if need to clear more files. And remove imports of these files.

If you need also disable promts, in the app\store\prompt.ts file you can replace

let fetchPrompts = [res.en, res.cn];

to

let fetchPrompts: PromptList[] = [];

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Jcontre905
Comment options

Answer selected by Yidadaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants