mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-31 06:23:08 +02:00
Switch to BiomeJS (#306)
This commit is contained in:
@@ -25,11 +25,11 @@ export function analyzeTemplate(template: string): 'global_secured' | 'local_sec
|
||||
|
||||
if (secureTags === 1 && totalTags === 1) {
|
||||
return 'global_secured';
|
||||
} else if (insecureTags === 0) {
|
||||
return 'local_secured';
|
||||
} else {
|
||||
return 'insecure';
|
||||
}
|
||||
if (insecureTags === 0) {
|
||||
return 'local_secured';
|
||||
}
|
||||
return 'insecure';
|
||||
}
|
||||
|
||||
export async function convertTemplateToInsecure(template: string) {
|
||||
|
||||
Reference in New Issue
Block a user