mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 10:23:24 +00:00
Enable TS strict mode and fix all associated errors
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { isChrome } from './extension';
|
||||
|
||||
export function queryCurrentDomain(cb: (domain: string | null) => void) {
|
||||
const handle = (tabUrl: string | null) => {
|
||||
const handle = (tabUrl: string | undefined) => {
|
||||
if (!tabUrl) cb(null);
|
||||
else cb(tabUrl);
|
||||
};
|
||||
|
Reference in New Issue
Block a user