Update API base URL to 'http://goyave' in background, options, and popup scripts
All checks were successful
Create Release / build-and-release (push) Successful in 6s

This commit is contained in:
JSC
2025-10-07 13:49:47 +02:00
parent f12913024b
commit b06655ff11
4 changed files with 9 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ chrome.contextMenus.onClicked.addListener(async (info, tab) => {
// Get API configuration
const result = await chrome.storage.sync.get(['apiToken', 'apiBaseUrl']);
const apiToken = result.apiToken;
const apiBaseUrl = result.apiBaseUrl || 'http://192-168-100-199.sslip.io';
const apiBaseUrl = result.apiBaseUrl || 'http://goyave';
if (!apiToken) {
// Open options page if no token configured
@@ -109,7 +109,7 @@ async function handleExtraction(url) {
try {
const result = await chrome.storage.sync.get(['apiToken', 'apiBaseUrl']);
const apiToken = result.apiToken;
const apiBaseUrl = result.apiBaseUrl || 'http://192-168-100-199.sslip.io';
const apiBaseUrl = result.apiBaseUrl || 'http://goyave';
if (!apiToken) {
throw new Error('API token not configured');