From 45bea6594fb9e1f67036cdaa5f840bf6137b76de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 14 Sep 2023 15:43:41 +0000 Subject: [PATCH] Define the field as a class property --- lib/assets/javascripts/turbograft/link.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/assets/javascripts/turbograft/link.js b/lib/assets/javascripts/turbograft/link.js index bbcc288..6bcf906 100644 --- a/lib/assets/javascripts/turbograft/link.js +++ b/lib/assets/javascripts/turbograft/link.js @@ -3,7 +3,9 @@ * to use in determining whether it should process the link when clicked. */ window.Link = class Link extends ComponentUrl { - HTML_EXTENSIONS = ['html']; + static initClass() { + this.HTML_EXTENSIONS = ['html']; + } static allowExtensions() { var extension, extensions, i, len; @@ -53,3 +55,4 @@ window.Link = class Link extends ComponentUrl { return this.link.target.length !== 0; }; }; +window.Link.initClass();