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 +3 -11
- package/package.json +1 -1
- package/styles/pixflow.css +1 -1
package/index.js
CHANGED
|
@@ -57,9 +57,8 @@ class PixflowUpgradePlanning extends HTMLElement {
|
|
|
57
57
|
}
|
|
58
58
|
})
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
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