summaryrefslogtreecommitdiff
path: root/src/scripts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts.c')
-rw-r--r--src/scripts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scripts.c b/src/scripts.c
index e0534db0..1374728f 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -1690,10 +1690,10 @@ static JSValueRef
clipboard_get(JSContextRef ctx, JSObjectRef f, JSObjectRef thisObject, size_t argc, const JSValueRef argv[], JSValueRef* exc)
{
if (argc < 1)
- return UNDEFINED;
+ return NIL;
GdkAtom atom = atom_from_jsvalue(ctx, argv[0], exc);
if (atom == NULL)
- return UNDEFINED;
+ return NIL;
GtkClipboard *clipboard = gtk_clipboard_get(atom);
if (argc > 1)
{
@@ -1715,7 +1715,7 @@ clipboard_get(JSContextRef ctx, JSObjectRef f, JSObjectRef thisObject, size_t ar
}
return ret;
}
- return UNDEFINED;
+ return NIL;
}
static JSValueRef