Defines the application path that becomes available in JavaScript under window.APP_PATH variable.
Defines the application path that becomes available in JavaScript under window.APP_PATH variable.
Visual Basic |
---|
Public Property app_path As String |
Defines the application path that becomes available in JavaScript under window.APP_PATH variable.
Private Sub Editor_OnCreate(ByVal Settings As WebKitXCEF3Lib.ISettings, CommandLineSwitches As String) On Error Resume Next With Settings .app_path = FS.GetAbsolutePathName(App.Path) .accept_language_list = "es-CL,en-GB" .persist_session_cookies = 0 .persist_user_preferences = 0 .show_context_menu = False .asynchronous_com_events = True If InStr(CommandLine, "--debug-editor") > 0 Then .remote_debugging_port = 9222 End If End With CommandLineSwitches = CommandLineSwitches + " --no-proxy-server --disable-cache --disable-gpu-program-cache --disable-gpu-shader-disk-cache" CommandLineSwitches = CommandLineSwitches + " --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows" CommandLineSwitches = CommandLineSwitches + " --disable-breakpad --disable-client-side-phishing-detection --disable-default-apps --disable-dev-shm-usage " CommandLineSwitches = CommandLineSwitches + " --disable-renderer-backgrounding --disable-sync --metrics-recording-only --no-first-run --no-default-browser-check" End Sub