From fb46cba0bd62fb007899b4685c5585008d757024 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Sat, 29 Oct 2016 21:33:59 -0500 Subject: [PATCH] fix incorrect attributes arguments --- src/webkit2-extension.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webkit2-extension.c b/src/webkit2-extension.c index f0de330..6099874 100644 --- a/src/webkit2-extension.c +++ b/src/webkit2-extension.c @@ -1622,7 +1622,7 @@ window_object_cleared_callback(WebKitScriptWorld *world, globalObject, JSStringCreateWithUTF8CString("__GreeterConfig"), greeter_config_object, - (JSPropertyAttributes) (kJSPropertyAttributeDontEnum || kJSPropertyAttributeReadOnly), + kJSPropertyAttributeDontEnum | kJSPropertyAttributeReadOnly, NULL); theme_utils_object = JSObjectMake(jsContext, theme_utils_class, NULL); @@ -1630,7 +1630,7 @@ window_object_cleared_callback(WebKitScriptWorld *world, globalObject, JSStringCreateWithUTF8CString("__ThemeUtils"), theme_utils_object, - (JSPropertyAttributes) (kJSPropertyAttributeDontEnum || kJSPropertyAttributeReadOnly), + kJSPropertyAttributeDontEnum | kJSPropertyAttributeReadOnly, NULL); dom_document = webkit_web_page_get_dom_document(web_page);