diff --git a/src/index.js b/src/index.js index 98260c4..1852f65 100644 --- a/src/index.js +++ b/src/index.js @@ -37,9 +37,7 @@ export default class extends Controller { } const response = await fetch(this.data.get('url')) - const html = await response.text() - - this.remoteContent = html + this.remoteContent = await response.text() } popover (element, content) {