nicer icons. different port
|
After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 571 B After Width: | Height: | Size: 501 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 774 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 999 B |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 530 B After Width: | Height: | Size: 469 B |
|
Before Width: | Height: | Size: 913 B After Width: | Height: | Size: 764 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 776 B |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.2 KiB |
@@ -2,7 +2,7 @@ import { RelayConnection, debugLog } from './relayConnection'
|
||||
import { create } from 'zustand'
|
||||
|
||||
// Relay URL - fixed port for MCP bridge
|
||||
const RELAY_URL = 'ws://localhost:9988/extension'
|
||||
const RELAY_URL = 'ws://localhost:19988/extension'
|
||||
|
||||
type ConnectionState = 'disconnected' | 'reconnecting' | 'connected' | 'error'
|
||||
|
||||
@@ -42,10 +42,10 @@ chrome.runtime.onInstalled.addListener((details) => {
|
||||
const icons = {
|
||||
connected: {
|
||||
path: {
|
||||
'16': '/icons/icon-green-16.png',
|
||||
'32': '/icons/icon-green-32.png',
|
||||
'48': '/icons/icon-green-48.png',
|
||||
'128': '/icons/icon-green-128.png',
|
||||
'16': '/icons/icon-16.png',
|
||||
'32': '/icons/icon-32.png',
|
||||
'48': '/icons/icon-48.png',
|
||||
'128': '/icons/icon-128.png',
|
||||
},
|
||||
title: 'Connected - Click to disconnect',
|
||||
badgeText: '',
|
||||
@@ -122,12 +122,12 @@ async function ensureConnection(): Promise<void> {
|
||||
}
|
||||
|
||||
debugLog('No existing connection, creating new relay connection')
|
||||
debugLog('Waiting for server at http://localhost:9988...')
|
||||
debugLog('Waiting for server at http://localhost:19988...')
|
||||
|
||||
useExtensionStore.setState({ connectionState: 'reconnecting' })
|
||||
while (true) {
|
||||
try {
|
||||
await fetch('http://localhost:9988', { method: 'HEAD' })
|
||||
await fetch('http://localhost:19988', { method: 'HEAD' })
|
||||
debugLog('Server is available')
|
||||
break
|
||||
} catch (error: any) {
|
||||
|
||||