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