Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Add experimental iOS 15 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ming900518 committed May 24, 2022
1 parent a6f8c8e commit 9082300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KanColleCommand/WebView/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct Constants {

static let darkBG = "javascript:var style = document.createElement(\"style\");style.type = \"text/css\";var head = document.head;head.appendChild(style);style.sheet.insertRule(\"* { color: #aaa !important; background-color: #000 !important; border-color: currentColor !important; }\");completion(true);;"

static let ios15Fix = "javascript:window.open(gadgetInfo.URL)"
static let ios15Fix = "javascript:window.open('http:'+gadgetInfo.URL,'_blank');"

static let iframeFix = "javascript:var sectionWrap = document.getElementById('sectionWrap');sectionWrap.parentNode.removeChild(sectionWrap);var spacing_top = document.getElementById('spacing_top');spacing_top.parentNode.removeChild(spacing_top);var debugDiv = document.getElementById('debugDiv');debugDiv.parentNode.removeChild(debugDiv);"
}

0 comments on commit 9082300

Please sign in to comment.