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
All checks were successful
Create Release / build-and-release (push) Successful in 6s
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user