REMOVE unused commented stuff

pull/1/head
serapath 7 years ago
parent 48ade37f8c
commit 6dda7c107a
  1. 34
      src/app/panels/terminal.js

@ -96,41 +96,7 @@ var css = csjs`
}
`
// var currentError
//
// window.addEventListener('error', function (event) {
// currentError = new Error(event.message)
// currentError.timeStamp = event.timeStamp
// currentError.isTrusted = event.isTrusted
// currentError.filename = event.filename
// currentError.lineno = event.lineno
// currentError.colno = event.colno
// currentError.error = event.error
// currentError.type = event.type
// })
//
// window.onerror = function (msg, url, lineno, col, error) {
// if (!error) error = currentError
// var val = { msg: msg, url: url, lineno: lineno, col: col, error: error }
// console.error(val)
// }
var KONSOLES = []
// var KONSOLES = [{
// error: console.error.bind(console),
// info: console.info.bind(console),
// log: console.log.bind(console)
// }]
// console.error = broadcast('error')
// console.info = broadcast('info')
// console.log = broadcast('log')
//
// function broadcast (mode) {
// return function broadcastMode () {
// var args = arguments
// KONSOLES.forEach(function (api) { api[mode].apply(api, args) })
// }
// }
function register (api) { KONSOLES.push(api) }

Loading…
Cancel
Save