houdini/app/javascript/legacy/common/polyfills.js

12 lines
229 B
JavaScript
Raw Normal View History

2019-11-06 20:36:28 +00:00
// License: LGPL-3.0-or-later
// Console fallback
if (!window.console) {
window.console = new function() {
this.log = function(str) {}
this.dir = function(str) {}
}
}
// Promises polyfill
require('es6-promise').polyfill()