I am attempting to edit the learning exercises and Chrome 79/MacOS 10.13.6
Page hangs with error…
“paused in debugger”
URL:
Filtering greeting messages - exercise
// reload page…
// click to edit javascript and type 1 character
// Error: paused in debugger
// Large grey rectangle on screen
// Can not edit
// reset and show solution buttons do not work.
Making new strings from old parts - excercise
// reload page…
// click to edit javascript and type 1 character
// Error: paused in debugger
// Large grey rectangle on screen
// Can not edit
// reset and show solution buttons do not work.
Hi @C_K_Ashby; this seems to work for me, in Chrome and Firefox.
Did this occur with any edit of the code, or when you made a specific change? it would be possible to create an infinite loop in the JS, which probably crash it
Working on the Promises tutorial.
Chrome 79/MacOS 10.13.6
" Explaining basic promise syntax"
// Very first script command errors. CORS.
// The support page linked to the console error…
" In response to CVE-2019-11730, Firefox 68 and later define the origin of a page opened using a file:/// URI as unique. Therefore, other resources in the same directory or its subdirectories no longer satisfy the CORS same-origin rule. This new behavior is enabled by default using the privacy.file_unique_origin preference."
Of course, if I just use imageRef.src = “coffee.jpg” . // No fetch. It works.
The example won’t work if you run it locally (i.e. through a file:// URL). I’ve added a note to make this clear, and offer solutions to get it running.
Of course, if I just use imageRef.src = “coffee.jpg” . // No fetch. It works.
I appreciate this, and I do talk about this in a note near the bottom of the example section. Thing is though, I chose this example because it demonstrates promises in a simple fashion, understandable by beginners, with immediate visual feedback when it’s worked. It is actually quite hard to come up with a real world promises example that is simple enough for beginners to understand it. Promises are really quite complicated.
I’ve added the expansion once in parens, after the first instance in the article. I didn’t add it everywhere, as I didn’t think it was that useful really - it’s a big jumble of words
I also prefer putting expansions directly in the page rather than in <abbr> elements, as I think it is better for accessibility.