geturl.js

This commit is contained in:
minjaesong
2022-09-22 23:25:46 +09:00
parent 2dc6f581cc
commit 7a0874b4a3
4 changed files with 63 additions and 14 deletions

View File

@@ -628,7 +628,10 @@ _TVDOS.DRV.FS.NET.sread = (fd) => {
com.sendMessage(port[0], "GET " + url)
com.waitUntilReady(port[0])
return com.pullMessage(port[0])
if (com.getStatusCode(port[0]) == 0)
return com.pullMessage(port[0])
else
return null
}
_TVDOS.DRV.FS.NET.flush = () => {}