Fixed preview broken in node app

This commit is contained in:
Remy Sharp 2012-07-04 12:32:11 +01:00
parent c1146e3bd6
commit 81beb795ee

View File

@ -5,6 +5,9 @@ $(function () {
if ($('#history').length) (function () {
function render(url) {
if (url.lastIndexOf('/') !== url.length - 1) {
url += '/';
}
iframe.src = url + 'quiet';
iframe.removeAttribute('hidden');
viewing.innerHTML = url;