about summary refs log tree commit diff stats
path: root/xxxterm.h
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-11-05 17:26:58 -0500
committerMarco Peereboom <marco@conformal.com>2011-11-05 17:26:58 -0500
commit06e4023aef80e8d5fe4bc5aa220f223ee6f21185 (patch)
treecd1f1ceb457bfec973ca89191909365d7fa73f14 /xxxterm.h
parent4712843c14c43c806b12e8f3017e004f0740cbeb (diff)
downloadxombrero-06e4023aef80e8d5fe4bc5aa220f223ee6f21185.tar.gz
Add autorun JavaScript after page loads
It tries to open a default.js file followed by host.domain.js.  If the
host.domain.js file does not exist it tries to open domain.js.

It reads the content of the default AND host/domain file and executes
it.

All scripts go in the ~/.xxxterm/js/ directory.
Diffstat (limited to 'xxxterm.h')
-rw-r--r--xxxterm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xxxterm.h b/xxxterm.h
index 28bdfbd..8d5f1bd 100644
--- a/xxxterm.h
+++ b/xxxterm.h
@@ -511,6 +511,7 @@ extern char	search_file[PATH_MAX];
 extern char	command_file[PATH_MAX];
 extern char	*encoding;
 extern int	autofocus_onload;
+extern int	js_autorun_enabled;
 extern char	*cmd_font_name;
 extern char	*oops_font_name;
 extern char	*statusbar_font_name;