mirror of
https://github.com/scratchfoundation/scratch-storage.git
synced 2025-07-07 03:44:13 -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) {
|
if (urlFunction) {
|
||||||
const url = urlFunction(asset);
|
const url = urlFunction(asset);
|
||||||
|
if (url === false) {
|
||||||
|
tryNextSource();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
nets({url: url}, (err, resp, body) => {
|
nets({url: url}, (err, resp, body) => {
|
||||||
// body is a Buffer
|
// body is a Buffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue