Skip to content

Commit

Permalink
Changes for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning committed May 9, 2023
1 parent 55426d2 commit 8f679b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chromium_src/ui/webui/resources/tools/optimize_webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# This variable comes from the upstream file, so disable the pylint warning
# about undefined variables.
# pylint: disable=E0602
# pylint: disable=undefined-variable
_BASE_EXCLUDES.extend([
"chrome://resources/brave/leo/bundle.js", "//resources/brave/leo/bundle.js"
])
7 changes: 3 additions & 4 deletions patches/ui-webui-resources-tools-optimize_webui.py.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
diff --git a/ui/webui/resources/tools/optimize_webui.py b/ui/webui/resources/tools/optimize_webui.py
index 6b5978eeb4145..116804784f91d 100755
index 6b5978eeb4145..73eca52c875b9 100755
--- a/ui/webui/resources/tools/optimize_webui.py
+++ b/ui/webui/resources/tools/optimize_webui.py
@@ -313,6 +313,6 @@ def main(argv):
optimize_output['js_module_out_files'][0])
@@ -314,5 +314,6 @@ def main(argv):
_update_dep_file(args.input, args, dep_file_header, manifest)

-
+from import_inline import inline_file_from_src; inline_file_from_src("brave/chromium_src/ui/webui/resources/tools/optimize_webui.py", globals(), locals())
if __name__ == '__main__':
main(sys.argv[1:])

0 comments on commit 8f679b8

Please sign in to comment.