@@ -209,10 +209,10 @@ public static void ExecuteScriptAsync(this IWebBrowser browser, string script)
209209 {
210210 if ( browser . CanExecuteJavascriptInMainFrame == false )
211211 {
212- throw new Exception ( @ "Unable to execute javascript at this time, scripts can only be executed within a V8Context.
213- Use the IWebBrowser.CanExecuteJavascriptInMainFrame property to guard against this exception.
214- See https://github.com/cefsharp/CefSharp/wiki/General-Usage#when-can-i-start-executing-javascript
215- for more details on when you can execute javascript." ) ;
212+ throw new Exception ( "Unable to execute javascript at this time, scripts can only be executed within a V8Context." +
213+ " Use the IWebBrowser.CanExecuteJavascriptInMainFrame property to guard against this exception." +
214+ " See https://github.com/cefsharp/CefSharp/wiki/General-Usage#when-can-i-start-executing-javascript " +
215+ " for more details on when you can execute javascript.") ;
216216 }
217217
218218 using ( var frame = browser . GetMainFrame ( ) )
@@ -736,10 +736,10 @@ public static Task<JavascriptResponse> EvaluateScriptAsync(this IWebBrowser brow
736736
737737 if ( browser . CanExecuteJavascriptInMainFrame == false )
738738 {
739- throw new Exception ( @ "Unable to execute javascript at this time, scripts can only be executed within a V8Context.
740- Use the IWebBrowser.CanExecuteJavascriptInMainFrame property to guard against this exception.
741- See https://github.com/cefsharp/CefSharp/wiki/General-Usage#when-can-i-start-executing-javascript
742- for more details on when you can execute javascript." ) ;
739+ throw new Exception ( "Unable to execute javascript at this time, scripts can only be executed within a V8Context." +
740+ " Use the IWebBrowser.CanExecuteJavascriptInMainFrame property to guard against this exception." +
741+ " See https://github.com/cefsharp/CefSharp/wiki/General-Usage#when-can-i-start-executing-javascript " +
742+ " for more details on when you can execute javascript.") ;
743743 }
744744
745745 using ( var frame = browser . GetMainFrame ( ) )
0 commit comments