Skip to content

Commit

Permalink
feat: Add feature import javascript module
Browse files Browse the repository at this point in the history
  • Loading branch information
riley817 committed Oct 26, 2022
1 parent b12eb42 commit 671d206
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions template/types/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -1671,6 +1671,10 @@ func (i *InfoPanel) AddJS(js template.JS) *InfoPanel {
return i.addFooterHTML(template.HTML("<script>" + js + "</script>"))
}

func (i *InfoPanel) AddJS(js template.JS) *InfoPanel {
return i.addFooterHTML(template.HTML("<script='module'>" + js + "</script>"))
}

func (i *InfoPanel) addCallback(node context.Node) *InfoPanel {
i.Callbacks = i.Callbacks.AddCallback(node)
return i
Expand Down

0 comments on commit 671d206

Please sign in to comment.