Merge branch 'master' of git.curoverse.com:arvados into 11876-r-sdk
[arvados.git] / apps / workbench / app / assets / javascripts / mithril_mount.js
index fe0907ed257a4dbd329842adcb009446c87529f9..f4689b51d7ebfc265476dfa3e0b748ac33b62b94 100644 (file)
@@ -2,11 +2,8 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-// rails_npm does "window.Mithril = require('mithril')" for us.
-var m = window.Mithril
-
 $(document).on('ready arv:pane:loaded', function() {
     $('[data-mount-mithril]').each(function() {
-        m.mount(this, window.components[$(this).data('mount-mithril')])
+        m.mount(this, window[$(this).data('mount-mithril')])
     })
 })