35 lines
1.5 KiB
Diff
35 lines
1.5 KiB
Diff
From: Your Name <you@example.com>
|
|
Date: Wed, 8 Feb 2023 13:14:58 +0000
|
|
Subject: 110 Experimental user scripts support
|
|
|
|
---
|
|
.../user_scripts/browser/resources/user-script-ui/BUILD.gn | 3 +--
|
|
.../browser/resources/user-script-ui/user-scripts-ui.js | 4 ++--
|
|
2 files changed, 3 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/components/user_scripts/browser/resources/user-script-ui/BUILD.gn b/components/user_scripts/browser/resources/user-script-ui/BUILD.gn
|
|
--- a/components/user_scripts/browser/resources/user-script-ui/BUILD.gn
|
|
+++ b/components/user_scripts/browser/resources/user-script-ui/BUILD.gn
|
|
@@ -6,7 +6,6 @@ js_type_check("closure_compile") {
|
|
|
|
js_library("view_script_source") {
|
|
deps = [
|
|
- "//ui/webui/resources/js:cr.m",
|
|
- "//ui/webui/resources/js:util",
|
|
+ "//ui/webui/resources:library",
|
|
]
|
|
}
|
|
diff --git a/components/user_scripts/browser/resources/user-script-ui/user-scripts-ui.js b/components/user_scripts/browser/resources/user-script-ui/user-scripts-ui.js
|
|
--- a/components/user_scripts/browser/resources/user-script-ui/user-scripts-ui.js
|
|
+++ b/components/user_scripts/browser/resources/user-script-ui/user-scripts-ui.js
|
|
@@ -1,5 +1,5 @@
|
|
-import {sendWithPromise} from 'chrome://resources/js/cr.m.js';
|
|
-import {$} from 'chrome://resources/js/util.js';
|
|
+import {sendWithPromise} from 'chrome://resources/js/cr.js';
|
|
+import {$} from 'chrome://resources/js/util_ts.js';
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
--
|
|
2.25.1
|