lint + update description

This commit is contained in:
timothycarambat
2024-08-27 10:41:52 -07:00
parent 9d1b38cec3
commit d9b28cc1e2
3 changed files with 15 additions and 9 deletions
+12 -6
View File
@@ -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"
]
}
]
}
}
+2 -2
View File
@@ -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
View File
@@ -6,5 +6,5 @@ import "./index.css";
ReactDOM.createRoot(document.getElementById("root")).render(
<React.StrictMode>
<App />
</React.StrictMode>,
</React.StrictMode>
);