Skip to content

Commit

Permalink
Merge pull request #107 from sailthru/CHAN-190_Adblocker-fix-error
Browse files Browse the repository at this point in the history
CHAN-190 ad-blocker fix error
  • Loading branch information
chin-sail authored Jul 17, 2023
2 parents 4920b39 + 4868c51 commit 247d597
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: sailthru-wp
Tags: personalization, email,
Requires at least: 5.5
Tested up to: 5.7
Stable tag: 4.3.0
Stable tag: 4.3.1

Provides an integration with Sailthru

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v4.3.1 (2023-07-07)
Added fix for ad-blocker

## v4.3.0 (2021-09-01)
Added filter for content vars

Expand Down
3 changes: 3 additions & 0 deletions js/tag.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
window.addEventListener("load", function() {
// Exit early if Sailthru was blocked by an ad-blocker
if(!window.Sailthru) return console.warn("Sailthru onsite JS failed to load.");

console.info("Sailthru onsite JS is loaded. Initializing Sailthru...");
if (tag.isCustom) {
jQuery(function($) {
Expand Down
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Sailthru for WordPress
Plugin URI: http://sailthru.com/
Description: Add the power of Sailthru to your WordPress set up.
Version: 4.3.0
Version: 4.3.1
Requires at least: 5.5
Author: Sailthru
Author URI: http://sailthru.com
Expand Down Expand Up @@ -36,7 +36,7 @@
* @var const $version The current version of the plugin.
*/
if ( ! defined( 'SAILTHRU_PLUGIN_VERSION' ) ) {
define( 'SAILTHRU_PLUGIN_VERSION', '4.3.0' );
define( 'SAILTHRU_PLUGIN_VERSION', '4.3.1' );
}

if ( ! defined( 'SAILTHRU_PLUGIN_PATH' ) ) {
Expand Down

0 comments on commit 247d597

Please sign in to comment.