News for hackers. Stuff that matters.
Re:Vim.wasm by TazeTSchnitzel on Thursday April 25, 2019 @06:03AM (#19746542)
It would need to have its HTTP code gutted and replaced with something that uses JS's XMLHttpRequest or the request API, but I think that's all you'd need to change.
Re:Vim.wasm by MuffinFlavored on Thursday April 25, 2019 @10:45AM (#19748675)
Or write a C function called http_request, refactor all of Lynx to use just this one function, and then do something like

    #if PLATFORM === 'WASM'
    then
      fetch()
    else
      the actual sockets and stuff
    end
Re:Vim.wasm by TazeTSchnitzel on Thursday April 25, 2019 @04:43PM (#19752338)
It would not be that simple, but yes.