Skip to content

Commit

Permalink
initializers/add-modals-container: Work around string injection bug
Browse files Browse the repository at this point in the history
see #320
  • Loading branch information
Turbo87 committed May 17, 2021
1 parent 0cf0726 commit c2b5bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/initializers/add-modals-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
);

Expand Down

0 comments on commit c2b5bad

Please sign in to comment.