atom-clock icon indicating copy to clipboard operation
atom-clock copied to clipboard

HTMLDocument.registerElement is deprecated.

Open KDUser12 opened this issue 3 years ago • 1 comments

Use customElements.define instead of document.registerElement see https://javascript.info/custom-elements

HTMLDocument.registerElement (file:///D:/Programme/pulsar/resources/app.asar/static/index.js:100:12)
Function.initClass (C:\Users\lucas\.pulsar\packages\autocomplete-python\node_modules\kite-installer\lib\elements\atom\install-element.js:12:35)
Object.<anonymous> (C:\Users\lucas\.pulsar\packages\autocomplete-python\node_modules\kite-installer\lib\elements\atom\install-element.js:144:33)
Object.<anonymous> (C:\Users\lucas\.pulsar\packages\autocomplete-python\node_modules\kite-installer\lib\elements\atom\install-element.js:146:3)
Module._compile (D:\Programme\pulsar\resources\app.asar\src\native-compile-cache.js:120:30)
Object..js (D:\Programme\pulsar\resources\app.asar\src\compile-cache.js:252:23)

KDUser12 avatar Jul 20 '23 19:07 KDUser12

Hi there! Thanks for flagging this. I’ve opened #76 to fix the deprecation warning by replacing the outdated document.registerElement call with the modern customElements.define API. This should resolve the error and keep the code aligned with current web standards. Please let me know if you notice anything else! Thanks again for bringing this up. 😊

webbrain-one avatar Aug 14 '26 07:08 webbrain-one