-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
36 lines (24 loc) · 933 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
let key_api = "165756vnlahl7ak3l52aeo"
let cors_any = "https://darenx-corsanywhere5.hf.space"
let frame_domain = "https://doods.pro"
let shortlink_domain = ""
let shortlink_token = ""
let shortlink_tujuan = ""
let midtrans_payment = "https://darenx-popdownload.hf.space/create"
let directlink_url = "https://darkbananas.com/in/p/?spot_id=830736&cat=25&sub_id=1246634411"
function direct_click(code){
window.location.href = `/p.html?id=${code}`
}
function savelocal(data) {
const file = JSON.parse(decodeURIComponent(data));
let savedFiles = localStorage.getItem('nonton-film');
savedFiles = savedFiles ? JSON.parse(savedFiles) : [];
savedFiles.push(file);
localStorage.setItem('nonton-film', JSON.stringify(savedFiles));
Swal.fire({
icon: 'success',
toast:true,
title: 'Video Berhasil Disimpan',
timer:1000
});
}