File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
app/service/service_worker Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ export class ScriptService {
201201 action : {
202202 type : "redirect" as chrome . declarativeNetRequest . RuleActionType ,
203203 redirect : {
204- regexSubstitution : `chrome-extension://${ chrome . runtime . id } /src/script_installation_page.html# url=\\0` ,
204+ regexSubstitution : `chrome-extension://${ chrome . runtime . id } /src/script_installation_page.html? url=\\0` ,
205205 } ,
206206 } ,
207207 condition : condition ,
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ const showError = (errorMessage: string) => {
1313} ;
1414
1515try {
16- const urlParam = new URLSearchParams ( location . hash . slice ( 1 ) ) . get ( "url" ) ;
16+ const urlParam = new URLSearchParams ( location . search ) . get ( "url" ) ;
17+ // const urlParam = new URLSearchParams(location.hash.slice(1)).get("url");
1718 const isValidURL = ( url : string ) => {
1819 try {
1920 new URL ( url ) ;
You can’t perform that action at this time.
0 commit comments