UNPKG

mtl-js-sdk

Version:

31 lines (25 loc) 749 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; function Plugin(options) { var exports = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var module = { init: function init(obj) { mtlBridge.call("nfc.init", JSON.stringify(obj), obj.callback); }, unInit: function unInit(obj) { mtlBridge.call("nfc.unInit", JSON.stringify(obj), obj.callback); } }; var _ref = options || { platform: window.mtl.platform }, platform = _ref.platform; exports.module = platform === "android" ? module : {}; exports.symbolPath = exports.symbolPath || "nfc"; return exports; } var _default = Plugin; exports["default"] = _default;