@d-i-t-a/reader 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +5 -3
- package/dist/esm/index.js.map +2 -2
- package/dist/reader.js +1 -1
- package/dist/reader.js.map +2 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -55723,7 +55723,7 @@ var ConsumptionModule = class {
|
|
|
55723
55723
|
}
|
|
55724
55724
|
async stop() {
|
|
55725
55725
|
import_loglevel7.default.log("Consumption module stop");
|
|
55726
|
-
this.
|
|
55726
|
+
this.endResearchSession();
|
|
55727
55727
|
}
|
|
55728
55728
|
initialize() {
|
|
55729
55729
|
let win = this.delegate.iframes[0].contentWindow;
|
|
@@ -56230,7 +56230,7 @@ var AnnotationModule = class {
|
|
|
56230
56230
|
} else {
|
|
56231
56231
|
this.commentGutter?.style.setProperty("display", "none");
|
|
56232
56232
|
}
|
|
56233
|
-
if (this.commentGutter && this.delegate.view?.isScrollMode()) {
|
|
56233
|
+
if (this.commentGutter && this.delegate.view?.isScrollMode() && this.properties?.enableComments) {
|
|
56234
56234
|
this.commentGutter.innerHTML = "";
|
|
56235
56235
|
let highlights = [];
|
|
56236
56236
|
if (this.annotator) {
|
|
@@ -58109,7 +58109,9 @@ var ContentProtectionModule = class {
|
|
|
58109
58109
|
}
|
|
58110
58110
|
async stop() {
|
|
58111
58111
|
import_loglevel14.default.log("Protection module stop");
|
|
58112
|
-
this.
|
|
58112
|
+
if (this.properties?.enableObfuscation) {
|
|
58113
|
+
this.mutationObserver.disconnect();
|
|
58114
|
+
}
|
|
58113
58115
|
if (this.properties?.disableKeys) {
|
|
58114
58116
|
removeEventListenerOptional(this.delegate.mainElement, "keydown", this.disableSave);
|
|
58115
58117
|
removeEventListenerOptional(this.delegate.headerMenu, "keydown", this.disableSave);
|