G
G
gadertes2018-03-14 11:00:07
JavaScript
gadertes, 2018-03-14 11:00:07

I can’t connect the script - where is the error?

I can't figure out where @ burrowed.
Out of the blue, strange problem.
I downloaded the localforage.min.js file from github.
Here is the document:

<!DOCTYPE HTML><html><head><meta charset="utf-8" />

<script type="text/javascript" src="localforage.min.js"></script>

</head><body>

<script type="text/javascript"> "use strict"

window.onload = function()
{
localforage.setItem('sdf', false)
}
</script>

</body></html>

I tried to embed the whole script in the document - the same problem.
The browser says that there is an error in the text of the script:
5aa8c7520a3c1257507188.png
And in other documents, I previously connected the same file and used it normally - there is no doubt that the file is normal.
Tried non-minified version - same
problem with other JS library, try running this file:
<!DOCTYPE HTML><html><head><meta charset="utf-8" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.0.9/howler.min.js"></script>
</head><body>
<script type="text/javascript">  
let имя = new Howl()
</script>
</body></html>

- here I'm trying to connect an external script from cdnjs
5aa8fbd5a3b83558500398.png
It seems that I'm doing everything right and the examples are simple, but somewhere @ burrowed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2018-03-14
@yarkov

Maybe localForage?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question