added scalling compatibilty for smaller devices

This commit is contained in:
2024-06-20 18:43:07 +08:00
parent 7f7e65c232
commit 7b396073f7
3 changed files with 65 additions and 62 deletions

View File

@@ -30,7 +30,7 @@ const determineDataType = (data: string): string => {
// Function to handle VirusTotal scanning
const processWithVirusTotal = async (data: string) => {
const apiKey = 'YOUR_VIRUSTOTAL_API_KEY';
const apiKey = '3566a17933bb36dd97cb35e84d0446e5ab8ad623e6de968d34b655c79485251e';
const url = 'https://www.virustotal.com/vtapi/v2/url/scan';
const params = {
apikey: apiKey,
@@ -48,7 +48,7 @@ const processWithVirusTotal = async (data: string) => {
// Function to get VirusTotal scan results
const getVirusTotalResults = async (scanId: string) => {
const apiKey = 'YOUR_VIRUSTOTAL_API_KEY';
const apiKey = '3566a17933bb36dd97cb35e84d0446e5ab8ad623e6de968d34b655c79485251e';
const url = 'https://www.virustotal.com/vtapi/v2/url/report';
const params = {
apikey: apiKey,