UNPKG
io3fix
Version:
latest (1.1.8-b)
1.2.1
1.1.8
1.1.8-b
toolkit for interior apps
3d.io
archilogic-com/3dio-js
io3fix
/
src
/
utils
/
io
/
fetch.js
14 lines
(11 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
runtime
from
'../../core/runtime.js'
export
default
(
function
(
){
if
(
typeof
fetch !==
'undefined'
) {
return
fetch }
else
{
console
.
warn
(
'Missing global fetch API.'
)
return
function
(
) {
throw
new
Error
(
'Missing global fetch API.'
) } } })()