pixflow-upgrade-planning 1.2.8 → 1.2.9

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 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(){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixflow-upgrade-planning",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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 {