gm-printer 10.16.0-beta.2 → 10.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/printer/do_print.js +5 -5
package/package.json
CHANGED
package/src/printer/do_print.js
CHANGED
|
@@ -14,11 +14,11 @@ let $printer = window.document.getElementById(printerId)
|
|
|
14
14
|
* @param {boolean} isTipZoom zoom的时候是否提示
|
|
15
15
|
*/
|
|
16
16
|
function init({ isTest, isTipZoom = true } = {}) {
|
|
17
|
-
isTipZoom &&
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
// isTipZoom &&
|
|
18
|
+
// isZoom() &&
|
|
19
|
+
// window.alert(
|
|
20
|
+
// '检测您的浏览器使用了缩放,为了避免影响打印布局,请重置缩放到100%后再进行打印'
|
|
21
|
+
// )
|
|
22
22
|
if (!$printer) {
|
|
23
23
|
$printer = window.document.createElement('iframe')
|
|
24
24
|
$printer.id = printerId
|