Skip to content

Commit

Permalink
cef: Don't use line breaks before script
Browse files Browse the repository at this point in the history
To preserve script line number

Issue: #372

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  • Loading branch information
jiri-janousek committed Dec 27, 2017
1 parent 4a01e44 commit 277655d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/nuvolakit-cef-worker/CefJSApi.vala
Expand Up @@ -24,12 +24,8 @@

namespace Nuvola {

private const string SCRIPT_WRAPPER = """window.__nuvola_func__ = function() {
window.__nuvola_func__ = null;
if (this == window) throw Error("Nuvola object is not bound to 'this'.");
%s
;}
""";
private const string SCRIPT_WRAPPER = "window.__nuvola_func__ = function() {" + "window.__nuvola_func__ = null; "
+ "if (this == window) throw Error(\"Nuvola object is not bound to 'this'.\"); %s\n;}";
private extern const int VERSION_MAJOR;
private extern const int VERSION_MINOR;
private extern const int VERSION_BUGFIX;
Expand Down

0 comments on commit 277655d

Please sign in to comment.