Allow http link handler to fallback to standard handler

This commit is contained in:
Daniel Imms
2017-03-04 14:44:11 -08:00
parent ab34d53d6b
commit 1f518b0b45
3 changed files with 11 additions and 13 deletions
+1 -1
View File
@@ -10,5 +10,5 @@ export type LinkMatcher = {
validationCallback?: LinkMatcherValidationCallback,
priority?: number
};
export type LinkMatcherHandler = (event: MouseEvent, uri: string) => void;
export type LinkMatcherHandler = (event: MouseEvent, uri: string) => boolean | void;
export type LinkMatcherValidationCallback = (uri: string, callback: (isValid: boolean) => void) => void;