Skip to content

Commit

Permalink
fix: ensure generated window id is valid attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Oct 13, 2023
1 parent f516c72 commit cb6828c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stores/use-windows-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const useWindowsStore = defineStore("windows", () => {
const rootElement = document.getElementById(windowRootId);
if (rootElement == null) return;

const id = params.id ?? nanoid();
const id = params.id ?? `window-${nanoid()}`;
const { title, kind } = params;

if (registry.value.has(id)) {
Expand Down

0 comments on commit cb6828c

Please sign in to comment.