diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-12-01 14:02:42 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-12-01 14:03:12 +0100 |
commit | 463e6830faf5bb81474ac55cf95eed6ae68cc684 (patch) | |
tree | 20ec7abe3f40d5f6e8da280b2705aaefae833229 /compute_scripts.awk | |
parent | 6106c789ee818fd18240fd3f99eead598406852f (diff) | |
download | browser-extension-463e6830faf5bb81474ac55cf95eed6ae68cc684.tar.gz browser-extension-463e6830faf5bb81474ac55cf95eed6ae68cc684.zip |
facilitate testing javascript functions
Haketilo's .js files can now be loaded together with their dependencies and
executed on a page opened in a selenium-driven Firefox instance.
Diffstat (limited to 'compute_scripts.awk')
-rw-r--r-- | compute_scripts.awk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compute_scripts.awk b/compute_scripts.awk index 123106c..2bad3c5 100644 --- a/compute_scripts.awk +++ b/compute_scripts.awk @@ -92,7 +92,8 @@ function print_imports_code(filename, i, count, import_name) { count = import_counts[filename] for (i = 1; i <= count; i++) { import_name = imports[filename,i] - printf "const %s = window.killtheweb.%s;\n", import_name, import_name + printf "const %s = window.haketilo_exports.%s;\n", + import_name, import_name } } @@ -100,7 +101,7 @@ function print_exports_code(filename, i, count, export_name) { count = export_counts[filename] for (i = 1; i <= count; i++) { export_name = exports[filename,i] - printf "window.killtheweb.%s = %s;\n", export_name, export_name + printf "window.haketilo_exports.%s = %s;\n", export_name, export_name } } |