11-- Extension settings builder for Chrome preferences
22
33local sys_utils = require (" utils" )
4- local install_utils = require (" install_extension.utils" )
4+ local install_utils = require (" install_extension.json_helpers" )
5+ local json = require (" json" )
56
67local M = {}
78
@@ -28,23 +29,23 @@ function M.build_extension_settings(extension_dir, manifest)
2829
2930 return {
3031 active_permissions = {
31- api = # api_permissions > 0 and api_permissions or install_utils .empty_array () ,
32+ api = # api_permissions > 0 and api_permissions or json .empty_array ,
3233 explicit_host = { " <all_urls>" },
33- manifest_permissions = install_utils .empty_array () ,
34+ manifest_permissions = json .empty_array ,
3435 scriptable_host = { " <all_urls>" },
3536 },
3637 commands = {},
37- content_settings = install_utils .empty_array () ,
38+ content_settings = json .empty_array ,
3839 creation_flags = 38 ,
3940 first_install_time = file_time ,
4041 from_webstore = false ,
4142 granted_permissions = {
42- api = # api_permissions > 0 and api_permissions or install_utils .empty_array () ,
43+ api = # api_permissions > 0 and api_permissions or json .empty_array ,
4344 explicit_host = { " <all_urls>" },
44- manifest_permissions = install_utils .empty_array () ,
45+ manifest_permissions = json .empty_array ,
4546 scriptable_host = { " <all_urls>" },
4647 },
47- incognito_content_settings = install_utils .empty_array () ,
48+ incognito_content_settings = json .empty_array ,
4849 incognito_preferences = {},
4950 last_update_time = file_time ,
5051 location = 4 , -- kUnpacked (developer mode)
0 commit comments