fixing some compiler issues

This commit is contained in:
Sriram Hariharan
2023-02-22 22:59:18 -06:00
parent bce2717088
commit b0eba78697
3 changed files with 5 additions and 16 deletions

View File

@@ -10,6 +10,10 @@ const HOST_PERMISSIONS: string[] = [
'*://*.login.utexas.edu/login/*',
];
if (process.env.NODE_ENV === 'development') {
HOST_PERMISSIONS.push('http://localhost:9090/*');
}
/**
* Creates a chrome extension manifest from the given version, mode, and
* @param mode the build mode (development or production)
@@ -41,7 +45,7 @@ export function getManifest(mode: Environment, version: string): chrome.runtime.
web_accessible_resources: [
{
resources: ['static/media/*', '*'],
matches: HOST_PERMISSIONS,
matches: ['<all_urls>'],
},
],
icons: {