Skip to content

Commit

Permalink
changed shared_info class names to avoid conflict with adblocker, closes
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Jan 14, 2022
1 parent 8240a20 commit 77c6c46
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/public/app/widgets/shared_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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();
}

Expand All @@ -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}) {
Expand Down

0 comments on commit 77c6c46

Please sign in to comment.