Skip to content

Commit

Permalink
Decode the title so that it can display CJK characters correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gekowa committed Aug 29, 2017
1 parent 89b82b4 commit 33aae0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viewer.js
Expand Up @@ -274,7 +274,7 @@ function Viewer(viewerPlugin, parameters) {
document.title = parameters.title;
var documentName = document.getElementById('documentName');
documentName.innerHTML = "";
documentName.appendChild(documentName.ownerDocument.createTextNode(parameters.title));
documentName.appendChild(documentName.ownerDocument.createTextNode(decodeURIComponent(parameters.title)));

viewerPlugin.onLoad = function () {
document.getElementById('pluginVersion').innerHTML = viewerPlugin.getPluginVersion();
Expand Down

0 comments on commit 33aae0d

Please sign in to comment.