diff --git a/CHANGELOG.md b/CHANGELOG.md index abbf7aff..eea8586d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ Change Log v2.15.0 --- -* Added `domainDest` option that option allows the browser to be redirected to a passed domain if the source code isn't run on the domains specified by `domainLock`. Thank you https://github.com/erikdubbelboer! +* Added `domainDest` option that option allows the browser to be redirected to a passed domain if the source code isn't run on the domains or URL specified by `domainLock`. Thank you https://github.com/erikdubbelboer! * `ObfuscationResult` object now contains `getOptions` method to get options that were used during obfuscation v2.14.0 diff --git a/README.md b/README.md index 04252c2a..c746bea9 100644 --- a/README.md +++ b/README.md @@ -690,6 +690,8 @@ Type: `string[]` Default: `[]` Allows to run the obfuscated source code only on specific domains and/or sub-domains. This makes really hard for someone to just copy and paste your source code and run it elsewhere. +If the source code isn't run on the domains specified by this option, the browser will be redirected to a passed to the [`domainDest`](#domaindest) option domain or URL. + ##### Multiple domains and sub-domains It's possible to lock your code to more than one domain or sub-domain. For instance, to lock it so the code only runs on **www.example.com** add `www.example.com`. To make it work on the root domain including any sub-domains (`example.com`, `sub.example.com`), use `.example.com`. @@ -698,7 +700,7 @@ Type: `string` Default: `about:blank` ##### :warning: This option does not work with `target: 'node'` -Allows the browser to be redirected to a passed domain if the source code isn't run on the domains specified by [`domainLock`](#domainlock) +Allows the browser to be redirected to a passed domain or URL if the source code isn't run on the domains specified by [`domainLock`](#domainlock) ### `exclude` Type: `string[]` Default: `[]`