3.0.2 • Published 5 years ago

whatsapp-api-fix v3.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Whatsapp api fix

This repository implement solution for firefox whatsapp break link

1. How to import

  1. Use gulp
gulp.task("whatsappFix", function () {
  gulp.src('./node_modules/whatsapp-api-fix/index.js')
    .pipe(gulp.dest("dist/"));
});
  1. Use gulp
<script async src="./node_modules/whatsapp-api-fix/index.js"></script>
  1. Or any other...

2. How to use

  1. Use funcion only number
var $wppFix = new WhatsappFix();

var params =  { number: 123456789 };
var redirect_whatsapp_link = $wppFix.getRedirect(params);

// > http://web.whatsapp.com/send?phone=123456789&text=
// > http://api.whatsapp.com/send?phone=123456789&text=
  1. Use funcion number and text
var $wppFix = new WhatsappFix();

var params =  { number: 123456789, text: 'text' };
var redirect_whatsapp_link = $wppFix.getRedirect(params);

// > http://web.whatsapp.com/send?phone=123456789&text=text
// > http://api.whatsapp.com/send?phone=123456789&text=text
  1. Use funcion to search in stackoverflow in case of error
    IN THIS CASE, A NEW TAB IS OPEN IN STACKOVERFLOW
var $wppFix = new WhatsappFix();

var params = { number: 123456789, text: 'text', search: true };
var redirect_whatsapp_link = $wppFix.getRedirect(params);
3.0.2

5 years ago

2.0.1

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago