Fix detectEval() when running in Chrome App environment