pixflow-upgrade-planning 1.2.8 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -3
- package/package.json +1 -1
- package/styles/pixflow.css +0 -1
package/index.js
CHANGED
|
@@ -61,6 +61,11 @@ class PixflowUpgradePlanning extends HTMLElement {
|
|
|
61
61
|
this.querySelector("div.activate-code").classList.add("active");
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
self.querySelector("div.pixflow div.activate-code-block button").addEventListener("click", function(){
|
|
65
|
+
const url = JSON.parse(localStorage.getItem("init-data")).userData.upgrade_subscription_url;
|
|
66
|
+
window.cep.util.openURLInDefaultBrowser(url);
|
|
67
|
+
})
|
|
68
|
+
|
|
64
69
|
}
|
|
65
70
|
|
|
66
71
|
active_next_license(){
|
|
@@ -84,9 +89,6 @@ class PixflowUpgradePlanning extends HTMLElement {
|
|
|
84
89
|
const self = this;
|
|
85
90
|
if(cep_manifest.get_extension_id() == "net.pixflow.voiceai")
|
|
86
91
|
return;
|
|
87
|
-
self.querySelector("div.pixflow div.activate-code-block button").addEventListener("click", function(){
|
|
88
|
-
window.cep.util.openURLInDefaultBrowser(JSON.parse(localStorage.getItem("init-data")).userData.upgrade_subscription_url);
|
|
89
|
-
})
|
|
90
92
|
const xhr = new XMLHttpRequest();
|
|
91
93
|
xhr.open("GET", `https://pixflow.net/wp-json/pixflow/get_product_price_detail?product-id=${cep_manifest.get_post_id()}&token=${token()}`);
|
|
92
94
|
xhr.addEventListener("load", function(){
|
|
@@ -129,6 +131,9 @@ class PixflowUpgradePlanning extends HTMLElement {
|
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
open(){
|
|
134
|
+
if(cep_manifest.get_extension_id() != "net.pixflow.voiceai" && localStorage.getItem("unlock") == "0"){
|
|
135
|
+
this.querySelector("div.activate-code").classList.add("active");
|
|
136
|
+
}
|
|
132
137
|
this.querySelector(`div.${this.port}`).classList.add("active");
|
|
133
138
|
}
|
|
134
139
|
|
package/package.json
CHANGED
package/styles/pixflow.css
CHANGED
|
@@ -115,7 +115,6 @@ div.activate-code-block {
|
|
|
115
115
|
width: 100%;
|
|
116
116
|
align-items: center;
|
|
117
117
|
background: linear-gradient(180deg, rgba(12,12,12,0) 0%, rgba(12,12,12,1) 34%, rgba(12,12,12,1) 100%);
|
|
118
|
-
margin: 5em;
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
pixflow-upgrade-planning > div.pixflow button, pixflow-upgrade-planning > div.purchase-code > form > button {
|