mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Updated domainLock option description
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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: `[]`
|
||||
|
||||
Reference in New Issue
Block a user