h3imdall / ftp-remote-edit

Edit files on ftp servers with Atom editor and without a workspace.
MIT License
178 stars 26 forks source link

Use customElements.define instead of document.registerElement see #443

Closed softokan closed 1 year ago

softokan commented 1 year ago

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

HTMLDocument.registerElement - file:///C:/Users/okant/AppData/Local/atom/app-1.63.1/resources/app.asar/static/index.js:160:12
registerElement - c:\Users\okant\.atom\packages\ftp-remote-edit\node_modules\space-pen\lib\space-pen.js:66:88
Builder.openTag - c:\Users\okant\.atom\packages\ftp-remote-edit\node_modules\space-pen\lib\space-pen.js:297:27
Builder.tag - c:\Users\okant\.atom\packages\ftp-remote-edit\node_modules\space-pen\lib\space-pen.js:274:12
Function.div - c:\Users\okant\.atom\packages\ftp-remote-edit\node_modules\space-pen\lib\space-pen.js:83:49
Function.content - c:\Users\okant\.atom\packages\ftp-remote-edit\lib\views\tree-view.js:769:19
softokan commented 1 year ago

node_modules\space-pen\lib\space-pen.js

registerElement = function(tagName) { var customTagName, _base; customTagName = "space-pen-" + tagName; if ((_base = window.__spacePenCustomElements)[customTagName] == null) { _base[customTagName] = typeof document.querySelector === "function" ? document.querySelector(customTagName, { prototype: Object.create(CustomElementPrototype), "extends": tagName }) : void 0; } return customTagName; };