fixed some bugs, and updated dev dashboard useffect"

This commit is contained in:
Sriram Hariharan
2023-03-03 18:58:19 -06:00
parent 57d704b759
commit 723caca417
9 changed files with 85 additions and 26 deletions

View File

@@ -10,10 +10,6 @@ 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)
@@ -22,6 +18,11 @@ if (process.env.NODE_ENV === 'development') {
*/
export function getManifest(mode: Environment, version: string): chrome.runtime.ManifestV3 {
let name = mode === 'development' ? `${NAME} (dev)` : NAME;
if (mode === 'development') {
HOST_PERMISSIONS.push('http://localhost:9090/*');
}
const manifest = {
name,
short_name: SHORT_NAME,