There is another possibility which is that there is something JavaScript does not like about your variables.
When Keyboard Maestro executes the JavaScript command “// comment” in Chrome, it executes a script that looks like this:
tell application "Google Chrome"
if it is running then
tell window 1
set r to execute active tab javascript "{
document.kmvar = {};
document.kmvar.Add_Day = \"60\";
document.kmvar.Add_Month = \"0\";
document.kmvar.Add_Year = \"0\";
document.kmvar.Alert_Button = \"Stop\";
-- …
document.kmvar.Yesterday = \"2015-11-22\";
undefined;
}
// comment"
if r is missing value then
set r to ""
end if
end tell
else
set r to "Not Running"
end if
end tell
r
It is possible AppleScript, JavaScript or Chrome is not happen with your variables or how the document.kmvar dictionary is filled out.
You can see the exact script in the Keyboard Maestro Engine log by entering this command in the Terminal:
defaults write com.stairways.keyboardmaestro.engine Debug JavaScript
and then restarting the Keyboard Maestro Engine and then executing the failing action, and then looking in the Engine.log file (Help ➤ Open Logs Folder). To turn the debugging back off, use the command:
defaults delete com.stairways.keyboardmaestro.engine Debug
and restart the engine.
With the AppleScript / JavaScript from the log file, try executing it in Script Editor and see if you get the same result. If so, try deleting all the document.kmvar section and see. If so, then you can narrow it down to which variable is the problem or email me your Keyboard Maestro Variables.plist file (Help ➤ Open preferences Folder) and I will see if I can determine what the problem is and how it can be avoided (and information in your variables will obviously be kept confidential).