diff --git a/package.json b/package.json index 8933478..c8e91dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rpdg/epg-panel", - "version": "2.0.3", + "version": "2.0.4", "description": "A javascript library for epg on STB (smart TV box)", "bugs": "https://github.com/rpdg/jPanel/issues", "homepage": "https://github.com/rpdg/jPanel", diff --git a/src/utils/log.ts b/src/utils/log.ts index 7ab19aa..0a760fd 100644 --- a/src/utils/log.ts +++ b/src/utils/log.ts @@ -41,6 +41,17 @@ } }; + window.console.error = function (...data: any[]) { + if (elChild.scrollHeight > 600) { + elChild.innerHTML = ''; + } else { + elChild.innerHTML += '