added redirection without need of a page, use it for paypal success or failure message already

This commit is contained in:
asus
2024-03-14 10:29:02 +01:00
parent 2f4a5bb9ef
commit ecc072e25b
9 changed files with 124 additions and 131 deletions

View File

@@ -1,7 +1,8 @@
/**
* this file is there for scripts that uses modules import
*/
/*
* this file is there for scripts that uses modules import
*
*/
export function PLGNTLS_fetch(url, options = {}) {
console.log("inside PLGNTLS_fetch");
url = PLGNTLS_data.fetch_url + url;
@@ -13,9 +14,10 @@ export function PLGNTLS_fetch(url, options = {}) {
return fetch(url, options);
}
/**
* For non-module scripts, attach to the global scope
*/
/*
* For non-module scripts, attach to the global scope
*
*/
if (typeof window !== 'undefined') {
window.PLGNTLS_fetch = PLGNTLS_fetch;
}