From c2b5bad2907bd8cdfaf0bc79000ad889d804943d Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 17 May 2021 10:20:38 +0200 Subject: [PATCH] initializers/add-modals-container: Work around string injection bug see https://github.com/yapplabs/ember-modal-dialog/issues/320 --- addon/initializers/add-modals-container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/initializers/add-modals-container.js b/addon/initializers/add-modals-container.js index 63fa0e98..8cfff887 100644 --- a/addon/initializers/add-modals-container.js +++ b/addon/initializers/add-modals-container.js @@ -39,7 +39,7 @@ export default function(AppOrEngine) { AppOrEngine.register( 'config:modals-container-id', - Ember.testing ? 'ember-testing' : modalContainerElId, + { toString: () => Ember.testing ? 'ember-testing' : modalContainerElId }, { instantiate: false } );