Don't call alert() - (load-libraries shouldn't be doing that), instead return
a string on error which can be logged/displayed/ignored as desired by the caller. Catch JSON.parse() errors gracefully and return an error (string).
Please register or sign in to comment