From 7270f7d295ecf274923b62f580bcc8c43aa6a963 Mon Sep 17 00:00:00 2001 From: "C. Bess" Date: Tue, 6 Feb 2018 16:19:39 -0600 Subject: [PATCH] Document internal-urls option (PR #465) --- docs/api.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/api.md b/docs/api.md index cc187ec..f7c2613 100644 --- a/docs/api.md +++ b/docs/api.md @@ -29,6 +29,7 @@ - [[honest]](#honest) - [[ignore-certificate]](#ignore-certificate) - [[insecure]](#insecure) + - [[internal-urls]](#internal-urls) - [[flash]](#flash) - [[flash-path]](#flash-path) - [[disk-cache-size]](#disk-cache-size) @@ -309,6 +310,20 @@ Passes the enable-es3-apis flag to the Chrome engine, to force the activation of ``` Forces the packaged app to ignore web security errors, such as [Mixed Content](https://developer.mozilla.org/en-US/docs/Security/Mixed_content) errors when receiving HTTP content on a HTTPS site. + +#### [internal-urls] + +``` +--internal-urls +``` +Regular expression of URLs to consider "internal"; all other URLs will be opened in an external browser. Defaults to URLs on same second-level domain as app. + +Example: + +```bash +nativefier https://google.com --internal-urls ".*?\.google\.*?" +``` + #### [flash] ```