mirror of https://github.com/NobyDa/Script.git
Fix broad match issues #396
This commit is contained in:
parent
f80a7e5d26
commit
735063ee4f
|
@ -9,6 +9,7 @@
|
|||
|
||||
const resp = {};
|
||||
const obj = JSON.parse($response.body || null);
|
||||
const app = /VSCO|Fileb(ox|all)/.test($request.headers['User-Agent']);
|
||||
|
||||
const product = {
|
||||
"membership": "com.circles.fin.premium.yearly", //vsco
|
||||
|
@ -20,7 +21,7 @@ const data = {
|
|||
"purchase_date": "2020-02-11T07:52:54Z"
|
||||
};
|
||||
|
||||
if (obj && obj.subscriber) {
|
||||
if (app && obj && obj.subscriber) {
|
||||
if (!obj.subscriber.subscriptions) {
|
||||
obj.subscriber.subscriptions = {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue