From c2cad4bea519311c5c1ec46744fbbac71b5899f6 Mon Sep 17 00:00:00 2001 From: Abdulla Anas Date: Tue, 29 Sep 2020 10:15:59 +0530 Subject: [PATCH 1/2] Window not defined issue fixed --- dist/watermark.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/watermark.min.js b/dist/watermark.min.js index 86640d1..90138d2 100644 --- a/dist/watermark.min.js +++ b/dist/watermark.min.js @@ -1 +1 @@ -!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.watermark=t():n.watermark=t()}(window,function(){return r={},u.m=e=[function(n,t,e){n.exports=e(1).default},function(n,t,e){"use strict";e.r(t);var r={};e.r(r),e.d(r,"atPos",function(){return s}),e.d(r,"lowerRight",function(){return g}),e.d(r,"upperRight",function(){return y}),e.d(r,"lowerLeft",function(){return v}),e.d(r,"upperLeft",function(){return m}),e.d(r,"center",function(){return w});var u={};function c(n){return n}function f(n){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){for(var e,r=[],u=0;u Date: Tue, 29 Sep 2020 13:20:49 +0530 Subject: [PATCH 2/2] Window is not defined is updated in the watermark.js file as the same as min.js --- dist/watermark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/watermark.js b/dist/watermark.js index c172279..6417250 100644 --- a/dist/watermark.js +++ b/dist/watermark.js @@ -7,7 +7,7 @@ exports["watermark"] = factory(); else root["watermark"] = factory(); -})(window, function() { +})(typeof window !== 'undefined'? window : null, function() { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {};