Plugin Directory

Changeset 1729219


Ignore:
Timestamp:
09/13/2017 10:53:25 AM (9 years ago)
Author:
Device Push
Message:

Create call to incentivate or native when devicepush.js from cdn is loaded

Location:
device-push/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • device-push/trunk/index.php

    r1729199 r1729219  
    55Author: Device Push
    66Author URI: https://www.devicepush.com
    7 Version: 2.0
     7Version: 2.1
    88*/
    99
     
    131131            echo '
    132132            <script>
    133             document.addEventListener("DOMContentLoaded", function(event) {
     133            document.addEventListener("sdkLoaded", function() {
    134134                localStorage.setItem("_DP_cms", "true");
    135135                devicePush.setCookies("devicePushUrl", "'.plugins_url( 'js/sw.js', __FILE__ ).'");
     
    153153            echo '
    154154            <script>
    155             document.addEventListener("DOMContentLoaded", function(event) {
     155            document.addEventListener("sdkLoaded", function() {
    156156                localStorage.setItem("_DP_cms", "true");
    157157                devicePush.setCookies("devicePushUrl", "'.plugins_url( 'js/sw.js', __FILE__ ).'");
  • device-push/trunk/readme.txt

    r1729199 r1729219  
    33Tags: device push, devicepush, notification, push, chrome, safari, firefox, opera, cordova, phonegap, ios, android, notification, marketing
    44Requires at least: 3.0.1
    5 Stable tag: 2.0
     5Stable tag: 2.1
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.