diff --git a/webgpu/template.html b/webgpu/template.html index b34fa7a..8402049 100644 --- a/webgpu/template.html +++ b/webgpu/template.html @@ -1,6 +1,6 @@ <html> <head> -<script type="text/javascript"> +<script type="text/javascript"> setTimeout(function() { cleanup(); }, 12000); @@ -17,6 +17,12 @@ }, 0)); } +var fuzzervars = {}; + +function GetVariable(fuzzervars, var_type) { if(fuzzervars[var_type]) { return fuzzervars[var_type] +; } else { return null; }} + +function SetVariable(fuzzervars, var_name, var_type) { fuzzervars[var_type] = var_name; } function cleanup() { try { gc(); } catch(e) {}