Compare commits
No commits in common. "bd0f77b1b656bed9135e21824ded49a44567ac6c" and "c5c277f5161d41bf0bac1d4b1c814ff62f0adff1" have entirely different histories.
bd0f77b1b6
...
c5c277f516
@ -49,14 +49,14 @@ export default class Finder extends WDEApplication{
|
|||||||
path: path
|
path: path
|
||||||
})
|
})
|
||||||
|
|
||||||
const response = await fetch(`/app/${this.AppId}/renderProps?` + params)
|
const response = await fetch(`/app/${Finder.AppId}/renderProps?` + params)
|
||||||
if (response.status != 200){
|
if (response.status != 200){
|
||||||
// WebDesktopEnvironment.Alert("Error in properties render") //TODO
|
// WebDesktopEnvironment.Alert("Error in properties render") //TODO
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
const html = await response.text()
|
const html = await response.text()
|
||||||
|
|
||||||
let newWindow = super.WDE().Decorat.CreateNewWindow(this.AppId, 350, 500 )
|
let newWindow = super.WDE().Decorat.CreateNewWindow(Finder.AppId, 350, 500 )
|
||||||
newWindow.innerHTML = html
|
newWindow.innerHTML = html
|
||||||
newWindow.querySelector("#closeWindowButton").addEventListener('click', function (params) {
|
newWindow.querySelector("#closeWindowButton").addEventListener('click', function (params) {
|
||||||
// WebDesktopEnvironment.CloseWindow(newWindow)
|
// WebDesktopEnvironment.CloseWindow(newWindow)
|
||||||
|
@ -67,7 +67,7 @@ export default class AbstractWebDesktopEnvironment{
|
|||||||
async #loadApp(appManifest, onload){
|
async #loadApp(appManifest, onload){
|
||||||
let newApp
|
let newApp
|
||||||
// console.log(appManifest)
|
// console.log(appManifest)
|
||||||
await import(appManifest.js[0]).then((app) => {newApp = app}) //FIXME
|
await import(appManifest.js[0]).then((app) => {newApp = app})
|
||||||
let newAppClass = new newApp.default(this.#wde, appManifest)
|
let newAppClass = new newApp.default(this.#wde, appManifest)
|
||||||
this._applications[appManifest.appId] = newAppClass
|
this._applications[appManifest.appId] = newAppClass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user