I am trying to use standalone version of libphonenumber-js (GitHub - catamphetamine/libphonenumber-js: A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript) as corvid public script,
but there is a problem with this code:
! function (d, t) {
“object” == typeof exports && “object” == typeof module ? module.exports = t() : “function” == typeof define && define.amd ? define(“libphonenumber”, , t) : “object” == typeof exports ? exports.libphonenumber = t() : d.libphonenumber = t()
}
(window, function () {
Some errors: module is not defined, window is not defined
Any hint how to solve it?