This commit is contained in:
Nathan Bierema 2025-11-20 08:55:52 -05:00
parent 6b320fd772
commit 24ae412b64

View File

@ -6,7 +6,11 @@ export function getReport(
tabId: string | number, tabId: string | number,
instanceId: number, instanceId: number,
) { ) {
chrome.storage.local.get(['s:hostname', 's:port', 's:secure'], (options) => { chrome.storage.local.get<{
's:hostname': string | undefined;
's:port': string | undefined;
's:secure': string | undefined;
}>(['s:hostname', 's:port', 's:secure'], (options) => {
if (!options['s:hostname'] || !options['s:port']) return; if (!options['s:hostname'] || !options['s:port']) return;
const url = `${options['s:secure'] ? 'https' : 'http'}://${ const url = `${options['s:secure'] ? 'https' : 'http'}://${
options['s:hostname'] options['s:hostname']