mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-06-18 04:40:11 -04:00
fix bug
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
"@types/react-redux": "^7.1.7",
|
||||
"@types/react-router-dom": "^5.1.6",
|
||||
"@types/spark-md5": "^3.0.2",
|
||||
"@types/underscore": "^1.13.0",
|
||||
"@types/ws": "^8.5.5",
|
||||
"classnames": "^2.2.6",
|
||||
"concurrently": "^5.0.1",
|
||||
|
||||
2
src/assets/lib/kookit.min.js
vendored
2
src/assets/lib/kookit.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -20,7 +20,6 @@ class ImageViewer extends React.Component<ImageViewerProps, ImageViewerStates> {
|
||||
this.props.rendition.on("rendered", () => {
|
||||
let doc = getIframeDoc();
|
||||
if (!doc) return;
|
||||
// StyleUtil.addDefaultCss();
|
||||
doc.addEventListener("click", this.showImage);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -6,8 +6,6 @@ class styleUtil {
|
||||
static addDefaultCss() {
|
||||
let doc = getIframeDoc();
|
||||
if (!doc) return;
|
||||
|
||||
let css = this.getDefaultCss();
|
||||
let background = document.querySelector(".viewer");
|
||||
if (!background) return;
|
||||
background.setAttribute(
|
||||
@@ -24,7 +22,7 @@ class styleUtil {
|
||||
if (!doc.head) {
|
||||
return;
|
||||
}
|
||||
|
||||
let css = this.getDefaultCss();
|
||||
let style = doc.createElement("style");
|
||||
style.id = "default-style";
|
||||
style.textContent = css;
|
||||
|
||||
@@ -4274,6 +4274,11 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.3.tgz#a136f83b0758698df454e328759dbd3d44555311"
|
||||
integrity sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==
|
||||
|
||||
"@types/underscore@^1.13.0":
|
||||
version "1.13.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/underscore/-/underscore-1.13.0.tgz#dd8c034a92e5b8e24650c31af43d807c5340cee4"
|
||||
integrity sha512-L6LBgy1f0EFQZ+7uSA57+n2g/s4Qs5r06Vwrwn0/nuK1de+adz00NWaztRQ30aEqw5qOaWbPI8u2cGQ52lj6VA==
|
||||
|
||||
"@types/verror@^1.10.3":
|
||||
version "1.10.6"
|
||||
resolved "https://registry.yarnpkg.com/@types/verror/-/verror-1.10.6.tgz#3e600c62d210c5826460858f84bcbb65805460bb"
|
||||
|
||||
Reference in New Issue
Block a user