Add initial support for stateUrls
This commit is contained in:
parent
08473aab11
commit
5b03a465fc
@ -140,7 +140,7 @@ class FinderWindow{
|
||||
windowElem = undefined
|
||||
|
||||
async Init(args){
|
||||
console.log(args)
|
||||
// console.log(args)
|
||||
if (args[1] === "-desktop"){
|
||||
const params = new URLSearchParams({
|
||||
isMobile: WebDesktopEnvironment.isMobile,
|
||||
|
@ -194,6 +194,7 @@ class WebDesktopEnvironment{
|
||||
*/
|
||||
static CreateNewWindow(appId, width, height) {
|
||||
let newWindow = document.createElement("div")
|
||||
newWindow.setAttribute('appid', appId)
|
||||
if (WebDesktopEnvironment.isMobile){
|
||||
newWindow.setAttribute("class", "MobileApplicationWindow")
|
||||
document.body.querySelector('#windows-layer').appendChild(newWindow)
|
||||
@ -341,9 +342,14 @@ class WindowsCompositor{
|
||||
previousWindow.classList.remove("Focused")
|
||||
window.classList.add("Focused")
|
||||
}
|
||||
// WindowsCompositor.ChangeURL(window)
|
||||
}
|
||||
|
||||
|
||||
static ChangeURL(appWindow){
|
||||
let appId = appWindow.getAttribute('appid')
|
||||
window.history.replaceState(null, "", `/${appId}/`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user