diff --git a/public/translate/cn/translate.js b/public/translate/cn/translate.js index 79cc201e85..15b887472d 100644 --- a/public/translate/cn/translate.js +++ b/public/translate/cn/translate.js @@ -18,6 +18,10 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true'; * @param container */ function processContainer(container) { + if (!container) { + return; + } + var nodes = container.querySelectorAll('p,h1,h2,h3,h4,h5,h6,header,a'); for(var i in nodes) { (function(node) {