Class: Polychrest::Ingredients
- Inherits:
-
Object
- Object
- Polychrest::Ingredients
- Defined in:
- lib/polychrest/ingredients.rb
Class Method Summary collapse
Class Method Details
.active ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/polychrest/ingredients.rb', line 3 def self.active return<<-EOF //<![CDATA[ window.onerror=function(msg){ var errorDiv = document.createElement('div'); errorDiv.className = 'js_errors'; errorDiv.setAttribute('style','height: 1px; width: 1px; overflow: hidden; position: absolute; left: -1000px;'); errorDiv.innerHTML = msg; document.body.appendChild(errorDiv); return true; } //]]> EOF end |