Skip to content

Commit

Permalink
Update api/updater.md with a note about required nativeAllowList stri…
Browse files Browse the repository at this point in the history
…ngs (#331)

* Update api/updater.md with a note about required nativeAllowList strings

* Update updater.md

---------

Co-authored-by: Shalitha Suranga <shalithasuranga@gmail.com>
  • Loading branch information
CosmoMyzrailGorynych and shalithasuranga authored Aug 2, 2024
1 parent fd6a4f6 commit def7c88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/api/updater.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ third-party update services, operating system level services, or other binaries/
Learn more about extensions with [this guide](../how-to/auto-updater).


:::note
For this API to work, you should add `"filesystem.writeBinaryFile"` to the [`nativeAllowList` field](../configuration/neutralino.config.json#nativeallowlist-string) of your `neutralino.config.json` file.
:::


## updater.checkForUpdates(url)
Checks latest updates from the given URL. The URL should return a valid Neutralinojs update manifest with
`Content-Type: application/json` header. Throws `NE_UP_CUPDMER` for invalid manifests and `NE_UP_CUPDERR`
Expand Down

0 comments on commit def7c88

Please sign in to comment.