Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit b06b0b1

Browse files
Merge pull request #5442 from livecodepanos/bugfix-19666
[Bug 19666] Make sure the delimiter in javascriptHandlers is '\n'
2 parents 47ed8df + 3dd549f commit b06b0b1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

docs/notes/bugfix-19666.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Make sure you can set more than one javascriptHandlers on CEF Browser

libbrowser/src/libbrowser_cef.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ bool MCCefBrowserBase::SetJavaScriptHandlers(const char *p_handlers)
15971597
if (!MCCStringIsEmpty(t_new_handlers))
15981598
{
15991599
if (t_success)
1600-
t_success = MCCStringSplit(t_new_handlers, ',', t_handlers, t_handler_count);
1600+
t_success = MCCStringSplit(t_new_handlers, '\n', t_handlers, t_handler_count);
16011601

16021602
if (t_success)
16031603
t_success = t_handler_list->SetSize(t_handler_count);

0 commit comments

Comments
 (0)