Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
changed shared_info class names to avoid conflict with adblocker, closes #2546
zadam77c6c4617b63
diff --git a/src/public/app/widgets/shared_info.js b/src/public/app/widgets/shared_info.jsindex d0aef4b200..6a830f8b67 100644--- a/src/public/app/widgets/shared_info.js+++ b/src/public/app/widgets/shared_info.js@@ -13,7 +13,7 @@ const TPL = `}</style>- <span class="share-text"></span> <a class="share-link external"></a>. For help visit <a href="https://github.com/zadam/trilium/wiki/Sharing">wiki</a>.+ <span class="shared-text"></span> <a class="shared-link external"></a>. For help visit <a href="https://github.com/zadam/trilium/wiki/Sharing">wiki</a>.</div>`;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}) {