Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: default published url, rename layer when focus is removed from t…
Browse files Browse the repository at this point in the history
…ext box
  • Loading branch information
rot1024 committed Aug 13, 2021
1 parent 0ad8aa0 commit f9accc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -58,7 +58,7 @@ export default function ({
}, [resetEditing]);

const inputRef = useRef<HTMLInputElement>(null);
useClickAway(inputRef, cancelEditing);
useClickAway(inputRef, finishEditing);

return {
editing,
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Expand Up @@ -21,7 +21,7 @@ declare global {
export const defaultConfig: Config = {
api: "/api",
plugins: "/plugins",
published: window.origin + "/p/{}",
published: window.origin + "/p/{}/",
};

export default async function loadConfig() {
Expand Down

0 comments on commit f9accc9

Please sign in to comment.