Skip to content

Commit

Permalink
hound pass3
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Jan 12, 2020
1 parent b08e8e3 commit 70273a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/media_source/com_modules/js/admin-modules-modal.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ document.addEventListener('DOMContentLoaded', () => {
// Use the API
if (window.parent.Joomla && window.parent.Joomla.editors
&& window.parent.Joomla.editors.instances
&& window.parent.Joomla.editors.instances.hasOwnProperty(editor)) {
window.parent.Joomla.editors.instances[editor].replaceSelection(`{loadmoduleid ${modid}}`);
&& Object.prototype.hasOwnProperty.call(window.parent.Joomla.editors.instances, editor)) {
window.parent.Joomla.editors.instances[editor].replaceSelection('{loadmoduleid ${modid}}');
}
});
});
Expand All @@ -36,7 +36,7 @@ document.addEventListener('DOMContentLoaded', () => {
// Use the API
if (window.Joomla && window.Joomla.editors && Joomla.editors.instances
&& Joomla.editors.instances.hasOwnProperty(editor)) {
Joomla.editors.instances[editor].replaceSelection(`{loadposition ${position}}`);
Joomla.editors.instances[editor].replaceSelection('{loadposition ${position}}');
}
});
});
Expand Down

0 comments on commit 70273a4

Please sign in to comment.