Skip to content

Commit

Permalink
Fix for Vaadin 7.7.28 and new Jsoup version (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
TatuLund authored Oct 20, 2021
1 parent ce59d30 commit 3841988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3841988

Please sign in to comment.