houdini/app/javascript/legacy/common/polyfills.js
2020-04-23 14:09:14 -05:00

11 lines
229 B
JavaScript

// 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()