mirror of
https://github.com/scratchfoundation/scratch-storage.git
synced 2025-06-16 01:08:29 -04:00
Merge pull request #40 from wdr-data/fix-skip-source
fix: allow asset url function to indicate skipping
This commit is contained in:
commit
8461b833ba
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@ class WebHelper extends Helper {
|
|||
|
||||
if (urlFunction) {
|
||||
const url = urlFunction(asset);
|
||||
if (url === false) {
|
||||
tryNextSource();
|
||||
return;
|
||||
}
|
||||
|
||||
nets({url: url}, (err, resp, body) => {
|
||||
// body is a Buffer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue