mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-02-11 09:45:49 +00:00
fix permission checkbox
This commit is contained in:
parent
1b44f26713
commit
970d8da4ea
10
src/App.tsx
10
src/App.tsx
@ -609,7 +609,7 @@ function App() {
|
||||
try {
|
||||
|
||||
await showQortalRequest(message?.payload);
|
||||
if (message?.payload?.checkbox1) {
|
||||
if (qortalRequestCheckbox1Ref.current) {
|
||||
|
||||
sendResponse({
|
||||
accepted: true,
|
||||
@ -631,6 +631,14 @@ function App() {
|
||||
|
||||
await showQortalRequestExtension(message?.payload);
|
||||
|
||||
if (qortalRequestCheckbox1Ref.current) {
|
||||
|
||||
sendResponse({
|
||||
accepted: true,
|
||||
checkbox1: qortalRequestCheckbox1Ref.current,
|
||||
});
|
||||
return;
|
||||
}
|
||||
sendResponse({ accepted: true });
|
||||
} catch (error) {
|
||||
sendResponse({ accepted: false });
|
||||
|
Loading…
x
Reference in New Issue
Block a user