Files
Adrien Maston a4f1a6b106 Coding style
2026-02-23 16:11:52 +01:00

15 lines
373 B
JavaScript

import { BridgeComponent } from "@hotwired/hotwire-native-bridge"
export default class extends BridgeComponent {
static component = "share"
shareUrl() {
const description = this.bridgeElement.bridgeAttribute("share-description")
this.send("shareUrl", {
title: document.title,
url: window.location.href,
description: description
})
}
}