mirror of
https://github.com/Qortal/chrome-extension.git
synced 2025-02-11 17:55:49 +00:00
remove logs
This commit is contained in:
parent
d2f1a0f9c9
commit
a625a2ce67
@ -1272,7 +1272,6 @@ async function getDataPublishes(groupId, type) {
|
||||
}
|
||||
|
||||
async function sendChatForBuyOrder({ qortAddress, recipientPublicKey, message }) {
|
||||
console.log('test3', qortAddress, recipientPublicKey, message)
|
||||
let _reference = new Uint8Array(64);
|
||||
self.crypto.getRandomValues(_reference);
|
||||
|
||||
@ -2013,7 +2012,6 @@ async function createBuyOrderTx({ crosschainAtInfo, useLocal }) {
|
||||
|
||||
export async function createBuyOrderTxQortalRequest({ crosschainAtInfo, isGateway, foreignBlockchain }) {
|
||||
try {
|
||||
console.log('test2', crosschainAtInfo, isGateway, foreignBlockchain)
|
||||
if (!isGateway) {
|
||||
const wallet = await getSaveWallet();
|
||||
|
||||
@ -3074,7 +3072,6 @@ async function getChatHeadsDirect() {
|
||||
chrome?.runtime?.onMessage.addListener((request, sender, sendResponse) => {
|
||||
if (request) {
|
||||
|
||||
console.log('REQUEST MESSAGE', request)
|
||||
|
||||
switch (request.action) {
|
||||
case "version":
|
||||
|
@ -370,7 +370,6 @@ isDOMContentLoaded: false
|
||||
|
||||
const sendMessageToRuntime = (message, eventPort) => {
|
||||
chrome?.runtime?.sendMessage(message, (response) => {
|
||||
console.log('runtimeres', response)
|
||||
if (response.error) {
|
||||
eventPort.postMessage({
|
||||
result: null,
|
||||
|
@ -49,7 +49,6 @@ function getLocalStorage(key) {
|
||||
// Save the updated object back to storage
|
||||
await setLocalStorage({ qortalRequestPermissions });
|
||||
|
||||
console.log('Permission set for', key);
|
||||
} catch (error) {
|
||||
console.error('Error setting permission:', error);
|
||||
}
|
||||
@ -471,7 +470,6 @@ chrome?.runtime?.onMessage.addListener((request, sender, sendResponse) => {
|
||||
}
|
||||
case "IS_USING_GATEWAY": {
|
||||
isRunningGateway().then((res) => {
|
||||
console.log('isusing', res)
|
||||
sendResponse({isGateway: res});
|
||||
})
|
||||
.catch((error) => {
|
||||
|
@ -1446,7 +1446,6 @@ export const getWalletBalance = async (data, bypassPermission?: boolean, isFromE
|
||||
}
|
||||
|
||||
const value = (await getPermission(`qAPPAutoWalletBalance-${data.coin}`)) || false;
|
||||
console.log('value', value)
|
||||
let skip = false;
|
||||
if (value) {
|
||||
skip = true;
|
||||
@ -2489,7 +2488,6 @@ export const sendCoin = async (data, isFromExtension) => {
|
||||
|
||||
|
||||
export const createBuyOrder = async (data, isFromExtension) => {
|
||||
console.log('data', data)
|
||||
const requiredFields = [
|
||||
"crosschainAtInfo",
|
||||
"foreignBlockchain"
|
||||
@ -2509,7 +2507,6 @@ export const createBuyOrder = async (data, isFromExtension) => {
|
||||
const foreignBlockchain = data.foreignBlockchain
|
||||
const crosschainAtInfo = data.crosschainAtInfo;
|
||||
const atAddresses = data.crosschainAtInfo?.map((order)=> order.qortalAtAddress);
|
||||
console.log('test', isGateway, foreignBlockchain , crosschainAtInfo, atAddresses)
|
||||
try {
|
||||
const resPermission = await getUserPermission({
|
||||
text1: "Do you give this application permission to perform a buy order?",
|
||||
|
Loading…
x
Reference in New Issue
Block a user