From 77c6c4617b634226e12ead172482fe1fe92bc360 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 14 Jan 2022 21:23:10 +0100 Subject: [PATCH] changed shared_info class names to avoid conflict with adblocker, closes #2546 --- src/public/app/widgets/shared_info.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/public/app/widgets/shared_info.js b/src/public/app/widgets/shared_info.js index d0aef4b20..6a830f8b6 100644 --- a/src/public/app/widgets/shared_info.js +++ b/src/public/app/widgets/shared_info.js @@ -13,7 +13,7 @@ const TPL = ` } - . For help visit wiki. + . For help visit wiki. `; export default class SharedInfoWidget extends NoteContextAwareWidget { @@ -23,8 +23,8 @@ export default class SharedInfoWidget extends NoteContextAwareWidget { doRender() { this.$widget = $(TPL); - this.$shareLink = this.$widget.find(".share-link"); - this.$shareText = this.$widget.find(".share-text"); + this.$sharedLink = this.$widget.find(".shared-link"); + this.$sharedText = this.$widget.find(".shared-text"); this.contentSized(); } @@ -36,14 +36,14 @@ export default class SharedInfoWidget extends NoteContextAwareWidget { if (syncServerHost) { link = syncServerHost + "/share/" + shareId; - this.$shareText.text("This note is shared publicly on"); + this.$sharedText.text("This note is shared publicly on"); } else { link = location.protocol + '//' + location.host + location.pathname + "share/" + shareId; - this.$shareText.text("This note is shared locally on"); + this.$sharedText.text("This note is shared locally on"); } - this.$shareLink.attr("href", link).text(link); + this.$sharedLink.attr("href", link).text(link); } entitiesReloadedEvent({loadResults}) {