summaryrefslogtreecommitdiffstats
path: root/scripts/unocommands.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/unocommands.py')
-rwxr-xr-xscripts/unocommands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/unocommands.py b/scripts/unocommands.py
index d3b7a887d5..808887da34 100755
--- a/scripts/unocommands.py
+++ b/scripts/unocommands.py
@@ -218,7 +218,7 @@ var unoCommandsArray = {\n''')
f.write('''};
-global._UNO = function(string, component, isContext) {
+window._UNO = function(string, component, isContext) {
\tvar command = string.substr(5);
\tvar context = 'menu';
\tif (isContext === true) {
@@ -252,7 +252,7 @@ global._UNO = function(string, component, isContext) {
def parseUnocommandsJS(onlineDir):
strings = {}
- f = open(onlineDir + '/loleaflet/unocommands.js', 'r')
+ f = open(onlineDir + '/loleaflet/src/unocommands.js', 'r')
readingCommands = False
for line in f:
line = line.decode('utf-8')