Is it possible to replace code of initializer via plugin?


(Александр Чайчук) #1

I want to customize code of page-tracking.js initializer via plugin. I’ve created plugin. I’ve placed my code in plugin-name/javascripts/discourse/initializers/page-tracking.js.es6

When page load i get error in console: The instance initializer ‘page-tracking’ has already been registered
My plugin.rb is empty