diff --git a/frontend/src/ts/commandline/lists/custom-background.ts b/frontend/src/ts/commandline/lists/custom-background.ts index 3033920f415e..fdd301d9f385 100644 --- a/frontend/src/ts/commandline/lists/custom-background.ts +++ b/frontend/src/ts/commandline/lists/custom-background.ts @@ -4,6 +4,7 @@ import FileStorage from "../../utils/file-storage"; import { applyCustomBackground } from "../../controllers/theme-controller"; import { updateUI } from "../../elements/settings/custom-background-picker"; import { showNoticeNotification } from "../../stores/notifications"; +import Config, { setConfig } from "../../config"; const fromMeta = buildCommandForConfigKey("customBackground"); @@ -88,6 +89,18 @@ const customBackgroundCommand: Command = { } }, }, + { + id: "removeUrlBackground", + display: "Remove URL background", + icon: "fa-trash", + alias: "remove background", + available: async (): Promise => { + return Config.customBackground !== ""; + }, + exec: async (): Promise => { + setConfig("customBackground", ""); + }, + }, ], }, };