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,8 +16,10 @@ Ox.load(function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (event == 'pdf' && Ox.isUndefined(oxid)) {
|
if (event == 'pdf' && Ox.isUndefined(oxid)) {
|
||||||
|
if (PDFView.url != data.pdf) {
|
||||||
PDFView.open(data.pdf);
|
PDFView.open(data.pdf);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Ox.$parent.postMessage('init', {});
|
Ox.$parent.postMessage('init', {});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue