added redirection without need of a page, use it for paypal success or failure message already
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user