summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew S <matthewsot@outlook.com>2017-05-20 10:46:50 -0700
committerMatthew S <matthewsot@outlook.com>2017-05-20 10:46:50 -0700
commitd77d80a1d7bd7ec4333d0c658332c121d7d91390 (patch)
treee12c5d429e8fbe21f9785683a6048fb7279e8966
parentaa02796b6129ac5233f2ad0f28da0fcfab3c32b8 (diff)
fixed insertion code
apparently tihs didn't get updated with the utils -> docs.utils update
-rw-r--r--docs.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs.js b/docs.js
index be19ca6..4ce3c5a 100644
--- a/docs.js
+++ b/docs.js
@@ -54,6 +54,7 @@ docs.getSelection = docs.getSelectionWithObserver;
docs.runWithCreateKeyboard = function (strToRun, funcName, params) {
var toRun = "var utils = {};utils.createKeyboardEvent = " + utils.createKeyboardEvent.toString() + ";";
+ var toRun = "var utils = {};utils.createKeyboardEvent = " + docs.utils.createKeyboardEvent.toString() + ";";
toRun += strToRun;
@@ -131,7 +132,7 @@ docs.backspace = function (counts) {
var secondsTimeout = secondsSinceLastBackspace < 1 ? (1 - secondsSinceLastBackspace) : 0;
- var toRun = "var utils = {};utils.createKeyboardEvent = " + utils.createKeyboardEvent.toString() + ";";
+ var toRun = "var utils = {};utils.createKeyboardEvent = " + docs.utils.createKeyboardEvent.toString() + ";";
toRun += doBackspace.toString();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback