mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-02-11 17:55: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 {
|
try {
|
||||||
|
|
||||||
await showQortalRequest(message?.payload);
|
await showQortalRequest(message?.payload);
|
||||||
if (message?.payload?.checkbox1) {
|
if (qortalRequestCheckbox1Ref.current) {
|
||||||
|
|
||||||
sendResponse({
|
sendResponse({
|
||||||
accepted: true,
|
accepted: true,
|
||||||
@ -631,6 +631,14 @@ function App() {
|
|||||||
|
|
||||||
await showQortalRequestExtension(message?.payload);
|
await showQortalRequestExtension(message?.payload);
|
||||||
|
|
||||||
|
if (qortalRequestCheckbox1Ref.current) {
|
||||||
|
|
||||||
|
sendResponse({
|
||||||
|
accepted: true,
|
||||||
|
checkbox1: qortalRequestCheckbox1Ref.current,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
sendResponse({ accepted: true });
|
sendResponse({ accepted: true });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
sendResponse({ accepted: false });
|
sendResponse({ accepted: false });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user