Plugin Directory

Changeset 2206752


Ignore:
Timestamp:
12/05/2019 06:30:00 PM (6 years ago)
Author:
thetinydesk
Message:

fixing a links

Location:
tiny-desk-pixel/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tiny-desk-pixel/trunk/public/js/tiny-desk-pixel-public.js

    r2204821 r2206752  
    22    'use strict';
    33    function clickListener(event) {
    4         if(event.target.tagName.toLowerCase() === 'a') {
    5             const href = event.target.href;
     4        let link = undefined;
     5        event.path.forEach(el => {
     6            if (el.tagName && el.tagName.toLowerCase() === 'a' && el.href) {
     7                link = el;
     8            }
     9        })
     10        if(link) {
     11            const href = link.href;
    612            const telRegex = /^tel:/;
    713            const mapRegex = /(goo.gl|google.com)\/maps\//;
  • tiny-desk-pixel/trunk/tiny-desk-pixel.php

    r2204821 r2206752  
    1515 * Plugin URI:        www.thetradedesk.com
    1616 * Description:       It helps you add easily your tracking tag from Tiny Desk by just giving your advertiser id and pixel id.
    17  * Version:           1.0.4
     17 * Version:           1.0.5
    1818 * Author:            The Trade Desk
    1919 * Author URI:        https://profiles.wordpress.org/thetinydesk/
     
    3434 * Rename this for your plugin and update it as you release new versions.
    3535 */
    36 define( 'TINY_DESK_PIXEL_VERSION', '1.0.4' );
     36define( 'TINY_DESK_PIXEL_VERSION', '1.0.5' );
    3737
    3838/**
Note: See TracChangeset for help on using the changeset viewer.