mirror of
https://github.com/aykhans/slash-e.git
synced 2026-11-10 15:41:09 +00:00
chore: remove shorcut lower name
This commit is contained in:
1 parent
4f0a8cdc0a
commit
4a50248fbc
3 files changed
+4
-8
No files matched your search
@@ -8,7 +8,7 @@ import Icon from "./Icon";
|
||||
|
||||
const generateTempName = (length = 6) => {
|
||||
let result = "";
|
||||
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||
const characters = "abcdefghijklmnopqrstuvwxyz0123456789";
|
||||
const charactersLength = characters.length;
|
||||
let counter = 0;
|
||||
while (counter < length) {
|
||||
@@ -53,7 +53,7 @@ const CreateShortcutsButton = () => {
|
||||
const tab = tabs[0];
|
||||
setState((state) => ({
|
||||
...state,
|
||||
name: generateTempName().toLowerCase() + "-temp",
|
||||
name: generateTempName() + "-temp",
|
||||
title: tab.title || "",
|
||||
link: tab.url || "",
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user