+5
-2
src/lib/Rabbithole.svelte
+5
-2
src/lib/Rabbithole.svelte
···
23
23
});
24
24
25
25
async function createNewProject(event) {
26
-
await chrome.runtime.sendMessage({
26
+
activeProject = await chrome.runtime.sendMessage({
27
27
type: MessageRequest.CREATE_NEW_PROJECT,
28
28
newProjectName: event.detail.newProjectName,
29
29
});
30
+
projects = await getOrderedProjects();
30
31
updateWebsites();
31
32
}
32
33
33
34
async function createNewProjectFromWindow(event) {
34
-
await chrome.runtime.sendMessage({
35
+
activeProject = await chrome.runtime.sendMessage({
35
36
type: MessageRequest.SAVE_WINDOW_TO_NEW_PROJECT,
36
37
newProjectName: event.detail.newProjectName,
37
38
});
39
+
projects = await getOrderedProjects();
38
40
updateWebsites();
39
41
}
40
42
···
55
57
await chrome.runtime.sendMessage({
56
58
type: MessageRequest.SAVE_WINDOW_TO_ACTIVE_PROJECT,
57
59
});
60
+
activeProject = await chrome.runtime.sendMessage({ type: MessageRequest.GET_ACTIVE_PROJECT })
58
61
updateWebsites();
59
62
}
60
63