pixflow-upgrade-planning 1.1.9 → 1.2.1

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
@@ -57,9 +57,8 @@ class PixflowUpgradePlanning extends HTMLElement {
57
57
  }
58
58
  })
59
59
  }
60
-
61
- const device = await purchase_code.check_device_select();
62
- if(cep_manifest.get_link_market() || !device || JSON.parse(localStorage.getItem("init-data")).userData.subscription_data.free_subscription == true){
60
+
61
+ if(localStorage.getItem("unlock") == "0"){
63
62
  this.querySelector("div.activate-code").classList.add("active");
64
63
  }
65
64
 
@@ -110,14 +109,7 @@ class PixflowUpgradePlanning extends HTMLElement {
110
109
  el_plan.querySelector("div > p").textContent = plan;
111
110
  }
112
111
  self.querySelector("div.pixflow div.activate-code-block button").addEventListener("click", function(){
113
- const plan = self.querySelector("div.plan > div > div.active").parentNode;
114
- const license = plan.className.split(" ")[0];
115
- let link;
116
- if(license == "pixflow-full-access")
117
- link = plan.getAttribute("data-url");
118
- else
119
- link = `https://pixflow.net/product/${cep_manifest.get_link()}/?active-license=${license}`;
120
- window.cep.util.openURLInDefaultBrowser(link);
112
+ window.cep.util.openURLInDefaultBrowser(`https://pixflow.net/product/${cep_manifest.get_link()}/`);
121
113
  })
122
114
  self.querySelectorAll("div.plan > div > div").forEach(function(element){
123
115
  element.addEventListener("click", function(){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixflow-upgrade-planning",
3
- "version": "1.1.9",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,7 +29,7 @@ pixflow-upgrade-planning > div.pixflow {
29
29
  background-color: #0C0C0C;
30
30
  top: calc(100vh + 10px);
31
31
  left: 20px;
32
- z-index: 3;
32
+ z-index: 4;
33
33
  transition: top 300ms ease-in;
34
34
  font-family: Inter;
35
35
  font-size: 15px;