javascript - User dispatch:phoneformat.js Server-Side in Meteor Application -
i using dispatch:phoneformat.js package. works fine on client side, when attempt use server side following error: [error: object #<object> has no method 'formate164']
looking @ github repo, believe should work server-side "out-of-the-box"
i'm trying call phoneformat.formate164 meteor method. works fine if call client side code.
according source code on package https://github.com/dispatchme/phoneformat.js/
the package not support getting formate164 on server side. server side methods phoneformat.configure allows use phoneformat.getcountryforip method.
it looks bit package designed way. may have request author modify more isomorphic.
i suspect google.phoneformat.js package built doesn't run on server judging use of client side window code in file. may why method works on client side.
Comments
Post a Comment