limit Toggle Reader menu entry to reader.html - I can't believe this match pattern is allowed here

This commit is contained in:
wareya committed 2017-12-12 21:22:16 -05:00
1 parent 207fa71856
commit 7ad76ec81e
1 file changed
+2 -1
+2 -1
View File
@@ -10,7 +10,8 @@ function toggle()
browser.contextMenus.create({
id: "nazeka-toggle",
title: "Toggle Nazeka",
contexts: ["all"],
contexts: ["page", "selection"],
documentUrlPatterns: ["moz-extension://*/reader.html"],
onclick: toggle
});