From 3841988149cea7ea6284372ca79e7621a3c56de2 Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Wed, 20 Oct 2021 16:59:09 +0300 Subject: [PATCH] Fix for Vaadin 7.7.28 and new Jsoup version (#444) --- .../addon/touchkit/settings/ApplicationCacheSettings.java | 2 +- .../com/vaadin/addon/touchkit/settings/ViewPortSettings.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/settings/ApplicationCacheSettings.java b/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/settings/ApplicationCacheSettings.java index 5055c04c..132488c9 100644 --- a/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/settings/ApplicationCacheSettings.java +++ b/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/settings/ApplicationCacheSettings.java @@ -63,7 +63,7 @@ public void modifyBootstrapPage(BootstrapPageResponse response) { script = script.replace("});", ",\"widgetsetUrl\":\"" + widgetsetUrl + "\",\"offlineEnabled\":" + isOfflineModeEnabled() + "});"); - scriptTag.appendChild(new DataNode(script, scriptTag.baseUri())); + scriptTag.appendChild(new DataNode(script)); if (isCacheManifestEnabled()) { // Add cache manifest attribute to html tag diff --git a/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/settings/ViewPortSettings.java b/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/settings/ViewPortSettings.java index 2c1fa832..5209b9e5 100644 --- a/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/settings/ViewPortSettings.java +++ b/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/settings/ViewPortSettings.java @@ -136,7 +136,7 @@ public void modifyBootstrapPage(BootstrapPageResponse response) { Element head = document.getElementsByTag("head").get(0); DocumentType doctype = (DocumentType) html.previousSibling(); - DocumentType html5doc = new DocumentType("html", "", "", ""); + DocumentType html5doc = new DocumentType("html", "", ""); doctype.replaceWith(html5doc); Element element = document.createElement("meta");