Comparing version 1.0.53 to 1.0.54
@@ -159,3 +159,5 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
isChrome: function isChrome() { | ||
return !!window.chrome && !!window.chrome.webstore; | ||
var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window; | ||
return !!context.chrome; | ||
}, | ||
@@ -162,0 +164,0 @@ // At least Safari 3+: "[object HTMLElementConstructor]" |
@@ -31,2 +31,5 @@ declare type PrintTypes = 'pdf' | 'html' | 'image' | 'json'; | ||
scanStyles?: boolean; | ||
onError?: (error: any) => void; | ||
onPrintDialogClose?: () => void; | ||
onPdfOpen?: () => void; | ||
} | ||
@@ -33,0 +36,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "A tiny javascript library to help printing from the web.", | ||
"version": "1.0.53", | ||
"version": "1.0.54", | ||
"main": "dist/print.js", | ||
@@ -8,0 +8,0 @@ "types": "./index.d.ts", |
@@ -15,4 +15,4 @@ const Browser = { | ||
// Chrome 1+ | ||
isChrome: () => { | ||
return !!window.chrome && !!window.chrome.webstore | ||
isChrome: (context = window) => { | ||
return !!context.chrome | ||
}, | ||
@@ -19,0 +19,0 @@ // At least Safari 3+: "[object HTMLElementConstructor]" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129967
1637