mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Reader: open external links
This commit is contained in:
@@ -246,6 +246,7 @@ class Reader {
|
|||||||
case 'loaded': this.#onLoaded(obj); break
|
case 'loaded': this.#onLoaded(obj); break
|
||||||
case 'relocated': this.#onRelocated(obj); break
|
case 'relocated': this.#onRelocated(obj); break
|
||||||
case 'reference': this.#onReference(obj); break
|
case 'reference': this.#onReference(obj); break
|
||||||
|
case 'external-link': globalThis.open(obj.uri, '_blank'); break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#handleKeydown(event) {
|
#handleKeydown(event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user