Don't try to use console when it's not available (IE with closed dev tools).