aboutsummaryrefslogtreecommitdiffstats
path: root/googledocs.js
diff options
context:
space:
mode:
Diffstat (limited to 'googledocs.js')
-rw-r--r--googledocs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/googledocs.js b/googledocs.js
index e325b72..ddf51a4 100644
--- a/googledocs.js
+++ b/googledocs.js
@@ -23,7 +23,7 @@
( function () {
hints.addMode(
liberator.globalVariables.googledocs_mapping || 'd',
- 'operate google doc',
+ 'operate Google Docs',
function (element) {
if (element.localName.toLowerCase() === 'div') {
let mousedown = document.createEvent('MouseEvent');
@@ -58,7 +58,7 @@ hints.addMode(
}
},
function () {
- if (!/http:\/\/docs\.google\.com\//.test(buffer.URL)) return;
+ if (!/^https?:\/\/docs\.google\.com\//.test(buffer.URL)) return;
const divClassNames = [
'goog-listitem-content',
'goog-listheaderitem-content',