mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-20 20:46:15 +08:00
Merge branch 'master' of https://github.com/Miodec/monkey-type
This commit is contained in:
commit
98caff336f
3 changed files with 10 additions and 0 deletions
|
@ -1596,6 +1596,14 @@ export let defaultCommands = {
|
|||
Commandline.show();
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "changeCustomBackground",
|
||||
display: "Change custom background...",
|
||||
input: true,
|
||||
exec: (input) => {
|
||||
UpdateConfig.setCustomBackground(input);
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "changeTheme",
|
||||
display: "Change theme...",
|
||||
|
|
|
@ -1353,6 +1353,7 @@ export function setCustomBackground(value, nosave) {
|
|||
if (value == null || value == undefined) {
|
||||
value = "";
|
||||
}
|
||||
value = value.trim();
|
||||
if (
|
||||
/(https|http):\/\/(www\.|).+\..+\/.+(\.png|\.gif|\.jpeg|\.jpg)/gi.test(
|
||||
value
|
||||
|
|
|
@ -2934,6 +2934,7 @@
|
|||
placeholder="image url"
|
||||
class="input"
|
||||
tabindex="0"
|
||||
onClick="this.select();"
|
||||
/>
|
||||
<div
|
||||
class="button save"
|
||||
|
|
Loading…
Add table
Reference in a new issue