-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Handle shouldReplaceFile at the ContentScript level
It is now possible to give shouldReplaceFile function to saveFiles at ContentScript level like this : ```javascript await this.saveFiles([{ filename: 'testfile.pdf', fileurl: '...', shouldReplaceFile: (existingFile, entry) => { // return true when the file should be replaced } }]) ``` or ```javascript await this.saveFiles([{ filename: 'testfile.pdf', fileurl: '...' }], { shouldReplaceFile: (existingFile, entry) => { // return true when the file should be replaced } }) ```
- Loading branch information
1 parent
f6eecf8
commit 7fa3e2e
Showing
3 changed files
with
174 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters