Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions frontend/app/view/webview/webview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,18 +285,18 @@ export class WebViewModel implements ViewModel {
globalStore.set(this.typeaheadOpen, open);
}

async fetchBookmarkSuggestions(
fetchBookmarkSuggestions = async (
query: string,
reqContext: SuggestionRequestContext
): Promise<FetchSuggestionsResponse> {
): Promise<FetchSuggestionsResponse> => {
const result = await this.env.rpc.FetchSuggestionsCommand(TabRpcClient, {
suggestiontype: "bookmark",
query,
widgetid: reqContext.widgetid,
reqnum: reqContext.reqnum,
});
return result;
}
};

handleUrlWrapperMouseOver(e: React.MouseEvent<HTMLDivElement, MouseEvent>) {
const urlInputFocused = globalStore.get(this.urlInputFocused);
Expand Down Expand Up @@ -755,7 +755,7 @@ const BookmarkTypeahead = memo(
const env = useWaveEnv<WebViewEnv>();
const openBookmarksJson = () => {
fireAndForget(async () => {
const path = `${env.electron.getConfigDir()}/presets/bookmarks.json`;
const path = `${env.electron.getConfigDir()}/bookmarks.json`;
const blockDef: BlockDef = {
meta: {
view: "preview",
Expand Down