summaryrefslogtreecommitdiff
path: root/amiga/gui_options.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-08-09 14:22:29 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-08-09 14:22:29 +0100
commit3b9a91312584dcf223c9d1f6314bc5b2bde868a1 (patch)
tree4710a60c1d8f2619b5021aee5822d55b10bc1f29 /amiga/gui_options.c
parent8d4c4b91795a1788ddb8dea1e21bdbd2ada4e588 (diff)
downloadnetsurf-3b9a91312584dcf223c9d1f6314bc5b2bde868a1.tar.gz
netsurf-3b9a91312584dcf223c9d1f6314bc5b2bde868a1.tar.bz2
Permanently enable display of the "enable javascript" UI options
Diffstat (limited to 'amiga/gui_options.c')
-rwxr-xr-xamiga/gui_options.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/amiga/gui_options.c b/amiga/gui_options.c
index a95e74a3d..d42aa1601 100755
--- a/amiga/gui_options.c
+++ b/amiga/gui_options.c
@@ -644,7 +644,6 @@ void ami_gui_opts_open(void)
LABEL_Text, gadlab[GID_OPTS_HISTORY],
LabelEnd,
LayoutEnd, // history
-#if defined(WITH_JS) || defined(WITH_MOZJS)
LAYOUT_AddChild, LayoutVObj,
LAYOUT_SpaceOuter, TRUE,
LAYOUT_BevelStyle, BVS_GROUP,
@@ -656,7 +655,6 @@ void ami_gui_opts_open(void)
GA_Selected, nsoption_bool(enable_javascript),
CheckBoxEnd,
LayoutEnd, // scripting
-#endif
LayoutEnd,
CHILD_WeightedHeight, 0,
LAYOUT_AddChild, LayoutVObj,
@@ -1573,14 +1571,12 @@ static void ami_gui_opts_use(bool save)
nsoption_set_bool(send_referer, false);
}
-#if defined(WITH_JS) || defined(WITH_MOZJS)
GetAttr(GA_Selected,gow->objects[GID_OPTS_JAVASCRIPT],(ULONG *)&data);
if (data) {
nsoption_set_bool(enable_javascript, true);
} else {
nsoption_set_bool(enable_javascript, false);
}
-#endif
GetAttr(GA_Selected,gow->objects[GID_OPTS_DONOTTRACK],(ULONG *)&data);
if (data) {