forked from 0x2620/pandora
only open pdf if url has changed
This commit is contained in:
parent
e1953b671d
commit
6e072a5635
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ Ox.load(function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (event == 'pdf' && Ox.isUndefined(oxid)) {
|
if (event == 'pdf' && Ox.isUndefined(oxid)) {
|
||||||
PDFView.open(data.pdf);
|
if (PDFView.url != data.pdf) {
|
||||||
|
PDFView.open(data.pdf);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Ox.$parent.postMessage('init', {});
|
Ox.$parent.postMessage('init', {});
|
||||||
|
|
Loading…
Reference in a new issue