mirror of
https://github.com/Mintplex-Labs/anythingllm-extension.git
synced 2026-07-01 20:34:57 -04:00
lint + update description
This commit is contained in:
+12
-6
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "AnythingLLM",
|
||||
"name": "AnythingLLM Browser Companion",
|
||||
"version": "1.0.0",
|
||||
"description": "Save selected text to AnythingLLM",
|
||||
"description": "Bring AnythingLLM directly into your browser to curate and collect content on the web directly into your AnythingLLM workspaces.",
|
||||
"icons": {
|
||||
"16": "icon16.png",
|
||||
"32": "icon32.png",
|
||||
@@ -16,7 +16,9 @@
|
||||
"notifications",
|
||||
"alarms"
|
||||
],
|
||||
"host_permissions": ["<all_urls>"],
|
||||
"host_permissions": [
|
||||
"<all_urls>"
|
||||
],
|
||||
"background": {
|
||||
"service_worker": "background.js"
|
||||
},
|
||||
@@ -31,8 +33,12 @@
|
||||
},
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": ["<all_urls>"],
|
||||
"js": ["contentScript.js"]
|
||||
"matches": [
|
||||
"<all_urls>"
|
||||
],
|
||||
"js": [
|
||||
"contentScript.js"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ export default function Config({ status, onStatusChange }) {
|
||||
const { online } = await BrowserExtension.checkOnline(apiBase);
|
||||
if (!online) {
|
||||
setSaveStatus(
|
||||
"AnythingLLM is currently offline. Please try again later.",
|
||||
"AnythingLLM is currently offline. Please try again later."
|
||||
);
|
||||
return;
|
||||
}
|
||||
@@ -57,7 +57,7 @@ export default function Config({ status, onStatusChange }) {
|
||||
|
||||
const { success, error } = await BrowserExtension.disconnect(
|
||||
apiBase,
|
||||
apiKey,
|
||||
apiKey
|
||||
);
|
||||
if (!success) {
|
||||
throw new Error(error || "Failed to disconnect from the server");
|
||||
|
||||
+1
-1
@@ -6,5 +6,5 @@ import "./index.css";
|
||||
ReactDOM.createRoot(document.getElementById("root")).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user