From 388de8dc9ba49d0dcd90c6a7724a67f26a4521e2 Mon Sep 17 00:00:00 2001 From: Folyd Date: Mon, 24 Jun 2024 23:43:31 -0700 Subject: [PATCH] Fix chrome variable --- core | 2 +- web/lib/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core b/core index 5d69cd5..9465cfc 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 5d69cd5a45a3b5d7642e73962256627f5be4bfab +Subproject commit 9465cfcf20ea1a7209ad84be9d68affaf5b8b82c diff --git a/web/lib/index.js b/web/lib/index.js index 9dd9d0b..b5e8d42 100644 --- a/web/lib/index.js +++ b/web/lib/index.js @@ -168,7 +168,7 @@ export class RustSearchOmnibox { }, onAppend: () => { let content = "/crates.html"; - if (chrome && chrome.runtime) { + if (window.chrome?.runtime) { content = chrome.runtime.getURL("manage/crates.html"); } return [{