Skip to content

Commit

Permalink
Merge pull request #113 from NenoR96/links
Browse files Browse the repository at this point in the history
fix: ios not taking spaces for phone call action item
  • Loading branch information
nteske authored Mar 14, 2022
2 parents 361d7c3 + d3ab85a commit cf86bca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions widget/controllers/widget.home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@
};

WidgetHome.openLinks = function (actionItems, $event) {
actionItems.map((el, index) => {
if (el.action === 'callNumber')
actionItems[index].phoneNumber = el.phoneNumber.replace(/\s/g, '');
});

if (actionItems && actionItems.length) {
var options = {};
var callback = function (error, result) {
Expand Down

0 comments on commit cf86bca

Please sign in to comment.