Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Resources/public/js/editInPlace.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
document.registerElement('x-trans', { prototype: Object.create(HTMLElement.prototype) });
(function () {
if (typeof customElements.define !== "undefined") {
customElements.define("x-trans", HTMLElement);

return;
}

document.registerElement("x-trans", {
prototype: Object.create(HTMLElement.prototype)
});
})();

/**
* TranslationBundleEditInPlace boot the ContentTools editor and handle saves.
Expand Down