Skip to content

Commit 03bd2b0

Browse files
committed
fix linux version, now minimum java version is 21
1 parent 53e14a3 commit 03bd2b0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
<dependency>
1919
<groupId>org.openjfx</groupId>
2020
<artifactId>javafx-controls</artifactId>
21-
<version>16</version>
21+
<version>23-ea+22</version>
2222
</dependency>
2323
<dependency>
2424
<groupId>org.openjfx</groupId>
2525
<artifactId>javafx-fxml</artifactId>
26-
<version>16</version>
26+
<version>23-ea+22</version>
2727
</dependency>
2828
<dependency>
2929
<groupId>org.openjfx</groupId>
3030
<artifactId>javafx-web</artifactId>
31-
<version>16</version>
31+
<version>23-ea+22</version>
3232
</dependency>
3333
<dependency>
3434
<groupId>org.controlsfx</groupId>
@@ -62,19 +62,19 @@
6262
<dependency>
6363
<groupId>org.openjfx</groupId>
6464
<artifactId>javafx-graphics</artifactId>
65-
<version>16</version>
65+
<version>23-ea+22</version>
6666
<classifier>win</classifier>
6767
</dependency>
6868
<dependency>
6969
<groupId>org.openjfx</groupId>
7070
<artifactId>javafx-graphics</artifactId>
71-
<version>16</version>
71+
<version>23-ea+22</version>
7272
<classifier>linux</classifier>
7373
</dependency>
7474
<dependency>
7575
<groupId>org.openjfx</groupId>
7676
<artifactId>javafx-graphics</artifactId>
77-
<version>16</version>
77+
<version>23-ea+22</version>
7878
<classifier>mac</classifier>
7979
</dependency>
8080
<dependency>

src/main/java/net/flectone/music/javafx/controller/ControllerApp.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public void initialize(URL url, ResourceBundle resourceBundle) {
6969
private void setupPlayer() {
7070
playerTextField.setText("https://music.yandex.ru/home");
7171
playerWebEngine = playerWebView.getEngine();
72+
playerWebEngine.setUserAgent("Mozilla/5.0");
7273
playerWebEngine.setJavaScriptEnabled(true);
7374

7475
playerWebEngine.getLoadWorker().stateProperty().addListener((observable, oldValue, newValue) -> {
@@ -82,6 +83,7 @@ private void setupPlayer() {
8283

8384
private void setupMedia() {
8485
mediaWebEngine = mediaWebView.getEngine();
86+
mediaWebEngine.setUserAgent("Mozilla/5.0");
8587
mediaWebEngine.setJavaScriptEnabled(true);
8688

8789
mediaWebEngine.getLoadWorker().stateProperty().addListener((observable, oldValue, newValue) -> {

0 commit comments

Comments
 (0)