File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed
Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 3333
3434 "web_accessible_resources" : [
3535 " icons/icon128.png" ,
36- " assets/prompt.js"
36+ " assets/prompt.js" ,
37+ " assets/prompt.css"
3738 ],
3839 "content_security_policy" : " script-src 'self'; object-src 'self'" ,
3940 "content_scripts" : [
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ import browser from "webextension-polyfill";
1818import { record } from "./record-api" ;
1919import { selenium } from "./commands-api" ;
2020
21+ const elementForInjectingStyle = document . createElement ( "link" ) ;
22+ elementForInjectingStyle . rel = "stylesheet" ;
23+ elementForInjectingStyle . href = browser . runtime . getURL ( "/assets/prompt.css" ) ;
24+ ( document . head || document . documentElement ) . appendChild ( elementForInjectingStyle ) ;
2125const elementForInjectingScript = document . createElement ( "script" ) ;
2226elementForInjectingScript . src = browser . runtime . getURL ( "/assets/prompt.js" ) ;
2327( document . head || document . documentElement ) . appendChild ( elementForInjectingScript ) ;
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 *
1616 */
17- import "./prompt.css" ;
1817
1918const originalPrompt = window . prompt ;
2019let nextPromptResult = false ;
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ export default {
3131 polyfills : [ "./setup" ] ,
3232 injector : [ "./prompt-injector" ] ,
3333 background : [ "./background" ] ,
34- prompt : [ "./prompt" ] ,
3534 record : [ "./record" ] ,
3635 escape : [ "./escape" ] ,
3736 neo : [ "react-hot-loader/patch" , "./neo/containers/Root" ]
@@ -237,6 +236,8 @@ export default {
237236 { from : "ext-command.js" , to : "vendor" } ,
238237 { from : "editor.js" , to : "vendor" } ,
239238 { from : "formatCommand.js" , to : "vendor" } ,
239+ { from : "prompt.js" , to : "./" } ,
240+ { from : "prompt.css" , to : "./" } ,
240241 { from : "manifest.json" , to : "../" } ,
241242 { from : "icons" , to : "../icons" }
242243 ] ) ,
You can’t perform that action at this time.
0 commit comments