mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	changed shared_info class names to avoid conflict with adblocker, closes #2546
This commit is contained in:
		| @@ -13,7 +13,7 @@ const TPL = ` | |||||||
|         } |         } | ||||||
|     </style> |     </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>`; | </div>`; | ||||||
|  |  | ||||||
| export default class SharedInfoWidget extends NoteContextAwareWidget { | export default class SharedInfoWidget extends NoteContextAwareWidget { | ||||||
| @@ -23,8 +23,8 @@ export default class SharedInfoWidget extends NoteContextAwareWidget { | |||||||
|  |  | ||||||
|     doRender() { |     doRender() { | ||||||
|         this.$widget = $(TPL); |         this.$widget = $(TPL); | ||||||
|         this.$shareLink = this.$widget.find(".share-link"); |         this.$sharedLink = this.$widget.find(".shared-link"); | ||||||
|         this.$shareText = this.$widget.find(".share-text"); |         this.$sharedText = this.$widget.find(".shared-text"); | ||||||
|         this.contentSized(); |         this.contentSized(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -36,14 +36,14 @@ export default class SharedInfoWidget extends NoteContextAwareWidget { | |||||||
|  |  | ||||||
|         if (syncServerHost) { |         if (syncServerHost) { | ||||||
|             link = syncServerHost + "/share/" + shareId; |             link = syncServerHost + "/share/" + shareId; | ||||||
|             this.$shareText.text("This note is shared publicly on"); |             this.$sharedText.text("This note is shared publicly on"); | ||||||
|         } |         } | ||||||
|         else { |         else { | ||||||
|             link = location.protocol + '//' + location.host + location.pathname + "share/" + shareId; |             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}) { |     entitiesReloadedEvent({loadResults}) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user