mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-07 02:58:11 +00:00
fix(browser-extension): resolve Biome lint and formatting issues
- Prefix unused parameter with underscore in t3.ts - Remove extra blank lines in chatgpt.ts, gemini.ts, t3.ts, twitter-import.ts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a88d4d9396
commit
22474ba013
4 changed files with 1 additions and 7 deletions
|
|
@ -703,7 +703,6 @@ function setupChatGPTPromptCapture() {
|
|||
debugChatGPT("prompt submitted", {
|
||||
source,
|
||||
promptLength: promptContent.length,
|
||||
|
||||
})
|
||||
try {
|
||||
await browser.runtime.sendMessage({
|
||||
|
|
|
|||
|
|
@ -363,7 +363,6 @@ function getInputText(input: GeminiInput | null): string {
|
|||
return input.innerText || input.textContent || ""
|
||||
}
|
||||
|
||||
|
||||
async function getRelatedMemoriesForGemini(actionSource: string) {
|
||||
try {
|
||||
const isAutoSearch =
|
||||
|
|
|
|||
|
|
@ -181,7 +181,6 @@ async function getRelatedMemoriesForT3(actionSource: string) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
if (!userQuery.trim()) {
|
||||
return
|
||||
}
|
||||
|
|
@ -213,7 +212,6 @@ async function getRelatedMemoriesForT3(actionSource: string) {
|
|||
timeoutPromise,
|
||||
])
|
||||
|
||||
|
||||
if (response?.success && response?.data) {
|
||||
let textareaElement = null
|
||||
const supermemoryContainer = document.querySelector(
|
||||
|
|
@ -486,7 +484,7 @@ function setupT3PromptCapture() {
|
|||
}
|
||||
document.body.setAttribute("data-t3-prompt-capture-setup", "true")
|
||||
|
||||
const captureT3PromptContent = async (source: string) => {
|
||||
const captureT3PromptContent = async (_source: string) => {
|
||||
const autoCapture = (await autoCapturePromptsEnabled.getValue()) ?? false
|
||||
|
||||
if (!autoCapture) {
|
||||
|
|
@ -530,7 +528,6 @@ function setupT3PromptCapture() {
|
|||
}
|
||||
|
||||
if (promptContent.trim()) {
|
||||
|
||||
try {
|
||||
await browser.runtime.sendMessage({
|
||||
action: MESSAGE_TYPES.CAPTURE_PROMPT,
|
||||
|
|
|
|||
|
|
@ -199,7 +199,6 @@ export class TwitterImporter {
|
|||
[]
|
||||
const nextCursor = extractNextCursor(instructions)
|
||||
|
||||
|
||||
if (nextCursor && tweets.length > 0 && !this.config.isFolderImport) {
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000)) // Rate limiting
|
||||
await this.batchImportAll(nextCursor, importedCount, uniqueGroupId)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue