iframe.io 1.0.2 → 1.0.3

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/dist/index.js CHANGED
@@ -146,7 +146,7 @@ var IOF = /** @class */ (function () {
146
146
  throw new Error('No Connection initiated');
147
147
  if (typeof payload == 'function') {
148
148
  fn = payload;
149
- payload = null;
149
+ payload = undefined;
150
150
  }
151
151
  // Acknowledge/callback event listener
152
152
  var cid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iframe.io",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Easy and friendly API to connect and interact between content window and its containing iframe",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/index.ts CHANGED
@@ -175,7 +175,7 @@ export default class IOF {
175
175
 
176
176
  if( typeof payload == 'function' ){
177
177
  fn = payload
178
- payload = null
178
+ payload = undefined
179
179
  }
180
180
 
181
181
  // Acknowledge/callback event listener