Version Description
- Date: 8.April.2022
- BugFixed : CTA Banner should be hidden once app is installed #264
Download this release
Release Info
Developer | superpwa |
Plugin | Super Progressive Web Apps |
Version | 2.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.2.4
- public/js/register-sw.js +5 -3
- readme.txt +5 -1
- superpwa.php +2 -2
public/js/register-sw.js
CHANGED
@@ -24,17 +24,19 @@ if ('serviceWorker' in navigator) {
|
|
24 |
a2hsBanner[i].style.display="flex";
|
25 |
}
|
26 |
}
|
|
|
27 |
}
|
28 |
})
|
29 |
|
30 |
-
|
31 |
var a2hsBanner = document.getElementsByClassName("superpwa-sticky-banner");
|
32 |
if(a2hsBanner.length){
|
33 |
for (var i = 0; i < a2hsBanner.length; i++) {
|
34 |
var showbanner = a2hsBanner[i].getAttribute("data-show");
|
35 |
-
|
|
|
|
|
36 |
}
|
37 |
-
}
|
38 |
});
|
39 |
|
40 |
var a2hsviaClass = document.getElementsByClassName("superpwa-add-via-class");
|
24 |
a2hsBanner[i].style.display="flex";
|
25 |
}
|
26 |
}
|
27 |
+
document.cookie = "hidecta=no";
|
28 |
}
|
29 |
})
|
30 |
|
31 |
+
window.addEventListener('appinstalled', function(evt){
|
32 |
var a2hsBanner = document.getElementsByClassName("superpwa-sticky-banner");
|
33 |
if(a2hsBanner.length){
|
34 |
for (var i = 0; i < a2hsBanner.length; i++) {
|
35 |
var showbanner = a2hsBanner[i].getAttribute("data-show");
|
36 |
+
document.cookie = "hidecta=yes";
|
37 |
+
a2hsBanner[i].style.display="none";
|
38 |
+
}
|
39 |
}
|
|
|
40 |
});
|
41 |
|
42 |
var a2hsviaClass = document.getElementsByClassName("superpwa-add-via-class");
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: SuperPWA
|
3 |
Tags: pwa, progressive web apps, manifest, web manifest, android app, chrome app, add to homescreen, mobile web
|
4 |
Requires at least: 3.6.0
|
5 |
-
Tested up to: 5.9.
|
6 |
Requires PHP: 5.3
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
@@ -186,6 +186,10 @@ Feel free to get in touch if you have any questions.
|
|
186 |
|
187 |
== Changelog ==
|
188 |
|
|
|
|
|
|
|
|
|
189 |
= 2.2.3 =
|
190 |
* Date: [26.March.2022](https://superpwa.com/superpwa-2-2-3-release-note/?utm_source=wordpress.org&utm_medium=changelog)
|
191 |
* Enhancement : Added New Addon QR Code Generator Array #255
|
2 |
Contributors: SuperPWA
|
3 |
Tags: pwa, progressive web apps, manifest, web manifest, android app, chrome app, add to homescreen, mobile web
|
4 |
Requires at least: 3.6.0
|
5 |
+
Tested up to: 5.9.3
|
6 |
Requires PHP: 5.3
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
186 |
|
187 |
== Changelog ==
|
188 |
|
189 |
+
= 2.2.4 =
|
190 |
+
* Date: [8.April.2022](https://superpwa.com/superpwa-2-2-4-release-note/?utm_source=wordpress.org&utm_medium=changelog)
|
191 |
+
* BugFixed : CTA Banner should be hidden once app is installed #264
|
192 |
+
|
193 |
= 2.2.3 =
|
194 |
* Date: [26.March.2022](https://superpwa.com/superpwa-2-2-3-release-note/?utm_source=wordpress.org&utm_medium=changelog)
|
195 |
* Enhancement : Added New Addon QR Code Generator Array #255
|
superpwa.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author: SuperPWA
|
7 |
* Author URI: https://profiles.wordpress.org/superpwa/
|
8 |
* Contributors: SuperPWA
|
9 |
-
* Version: 2.2.
|
10 |
* Text Domain: super-progressive-web-apps
|
11 |
* Domain Path: /languages
|
12 |
* License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
@@ -43,7 +43,7 @@ if ( ! defined('ABSPATH') ) exit;
|
|
43 |
* @since 1.0
|
44 |
*/
|
45 |
if ( ! defined( 'SUPERPWA_VERSION' ) ) {
|
46 |
-
define( 'SUPERPWA_VERSION' , '2.2.
|
47 |
}
|
48 |
|
49 |
/**
|
6 |
* Author: SuperPWA
|
7 |
* Author URI: https://profiles.wordpress.org/superpwa/
|
8 |
* Contributors: SuperPWA
|
9 |
+
* Version: 2.2.4
|
10 |
* Text Domain: super-progressive-web-apps
|
11 |
* Domain Path: /languages
|
12 |
* License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
43 |
* @since 1.0
|
44 |
*/
|
45 |
if ( ! defined( 'SUPERPWA_VERSION' ) ) {
|
46 |
+
define( 'SUPERPWA_VERSION' , '2.2.4' );
|
47 |
}
|
48 |
|
49 |
/**
|