mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-27 12:49:32 +03:00
do not add script handler if runtime cannot be initialised
This commit is contained in:
parent
1b4604130e
commit
25e85f1429
@ -38,8 +38,10 @@ void js_initialise(void)
|
||||
rt = JS_NewRuntime(8L * 1024L * 1024L);
|
||||
JSLOG("New runtime handle %p", rt);
|
||||
|
||||
/* register script content handler */
|
||||
javascript_init();
|
||||
if (rt != NULL) {
|
||||
/* register script content handler */
|
||||
javascript_init();
|
||||
}
|
||||
}
|
||||
|
||||
void js_finalise(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user