We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 09dc432 + 42f9bc0 commit 2da9931Copy full SHA for 2da9931
Resources/public/js/editInPlace.js
@@ -6,7 +6,17 @@
6
* For the full copyright and license information, please view the LICENSE
7
* file that was distributed with this source code.
8
*/
9
-document.registerElement('x-trans', { prototype: Object.create(HTMLElement.prototype) });
+(function () {
10
+ if (typeof customElements.define !== "undefined") {
11
+ customElements.define("x-trans", HTMLElement);
12
+
13
+ return;
14
+ }
15
16
+ document.registerElement("x-trans", {
17
+ prototype: Object.create(HTMLElement.prototype)
18
+ });
19
+})();
20
21
/**
22
* TranslationBundleEditInPlace boot the ContentTools editor and handle saves.
0 commit comments