Created
January 7, 2015 09:58
-
-
Save pratham2003/d79f1cb53e23d4aba0af to your computer and use it in GitHub Desktop.
Revisions
-
pratham2003 revised this gist
Jan 7, 2015 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,7 @@ var whatsappText = _args['text'].replace(/%25URL%25/,_args['url']).replace(/(%25NL%25)/g,'%0A'); if(window.navigator.appVersion.match(/Chrome\/(.*?) /)[1]) { var chrome_ver = parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10); if(chrome_ver > 37 && chrome_ver < 40) whatsappText = _args['text'].replace(/%25URL%25/,_args['url']).replace(/(%25NL%25)/g,'%20'); } var twitterText = _args['text'].replace(/%25URL%25/,'').replace(/%25NL%25/g,' '); -
pratham2003 created this gist
Jan 7, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ var whatsappText = _args['text'].replace(/%25URL%25/,_args['url']).replace(/(%25NL%25)/g,'%0A'); var twitterText = _args['text'].replace(/%25URL%25/,'').replace(/%25NL%25/g,' ');