Skip to content

Commit

Permalink
feat: update to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Mar 25, 2024
1 parent dc1f7a0 commit 1951594
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quark-doc-header",
"version": "2.0.0",
"version": "2.0.1",
"scripts": {
"dev": "npm run start",
"start": "vite --open",
Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ class MyComponent extends QuarkElement {
appId: "EA4BY59U66",
apiKey: "5d1fd7c976a98a74421011f1374dd200",
}
if(location.host.indexOf("vue-quarkd") > -1) {
if(location.pathname.indexOf("vue") > -1) {
docsearch({
...params,
indexName:
localStorage.getItem("language") === "en-US" ? "ENDoc" : "CNDoc",
});
} else if(location.host.indexOf("react-quarkd") > -1) {
} else if(location.pathname.indexOf("react") > -1) {
docsearch({
...params,
indexName:
Expand Down

0 comments on commit 1951594

Please sign in to comment.