Skip to content

Commit

Permalink
Fixed session manager in the demo,
Browse files Browse the repository at this point in the history
fixed video exception in the demo
  • Loading branch information
FlorianKirmaier committed Mar 8, 2024
1 parent dd99252 commit d9e7b5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ public class HelloWorld {
## Images and extensions

CoPilots favorite music:
```
// doesn't work reliable on desktop, but works very well with JPro.
![alt](youtube:dQw4w9WgXcQ)
```

Some Image:
![alt](https://www.jpro.one/app/default/resourcesencoded/cp:/1/1/one/jpro/img/landing/DUKE-forward.png)
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public void start(Stage stage) {
}

public Parent createRoot(Stage stage) {
ObservableMap<String,String> session = sm.getSession(WebAPI.getWebAPI(stage));
ObservableMap<String,String> session = (WebAPI.isBrowser()) ? sm.getSession(WebAPI.getWebAPI(stage))
: sm.getSession("user-session");

VBox rootPane = new VBox();
rootPane.setAlignment(Pos.CENTER);
Expand Down

0 comments on commit d9e7b5b

Please sign in to comment.