Updated domainLock option description

This commit is contained in:
sanex
2021-06-11 09:54:47 +03:00
parent 4730e785b6
commit ada04e5106
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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
+3 -1
View File
@@ -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: `[]`