Spaces:
Runtime error
Runtime error
File size: 363 Bytes
4450790 |
1 2 3 4 5 6 7 8 9 10 11 |
import { app } from "../../../scripts/app.js";
import { NodeTypesString } from "../constants.js";
class BookmarksService {
getCurrentBookmarks() {
return app.graph._nodes
.filter((n) => n.type === NodeTypesString.BOOKMARK)
.sort((a, b) => a.title.localeCompare(b.title));
}
}
export const SERVICE = new BookmarksService();
|