Skip to content

Commit 670e147

Browse files
committed
Use startsWtih instead of regex for detecting about:reader in url
1 parent 74a5065 commit 670e147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/content/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const Browser = Module("browser", {
211211
"View current tab in Reader View",
212212
function () {
213213
let uri = content.document.location;
214-
if !(uri.match(/about:reader/)) {
214+
if !(uri.startsWith("about:reader")) {
215215
liberator.open('about:reader?url=' + uri);
216216
} else {
217217
liberator.open(uri.substr("about:reader?url=".length));

0 commit comments

Comments
 (0)