NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: CaseyR on July 19, 2017, 12:56:29 PM

Title: Unreachable code after return JS warnings
Post by: CaseyR on July 19, 2017, 12:56:29 PM
Hi, Bruce

For quite a while, I have been getting red JS warnings flickering through my browser (firefox).   The firebug debugger identified "Unreachable code after return" errors (at least I am assuming these are causing the flicker).   They didn't seem to affect the pages themselves and I wrongly assumed they would disappear on changing to release mode.  I am a few minor releases behind (9.27) but didn't find any references to these warnings in the update history section, so here they are:

leaflet.js:3462:1
jquery.nt-browse.js:639:3

In general, is there a way keep these warnings from from flickering the JS error banner in release mode?  Thanks.

 
Title: Re: Unreachable code after return JS warnings
Post by: Bruce on July 20, 2017, 09:39:13 PM
Hi Casey,

>>  I am assuming these are causing the flicker

they are not. The flicker is there by design. (if there is an error it stays.) You can turn off the test for this on the performance tab.

Cheers
Bruce
Title: Re: Unreachable code after return JS warnings
Post by: CaseyR on July 21, 2017, 12:40:52 PM
Worked like a charm.  Thanks, Bruce