Skip to content

Commit

Permalink
removed auto paste of url on plugin page
Browse files Browse the repository at this point in the history
because in case of image data context menu starts crashing
  • Loading branch information
bajrangCoder committed Sep 1, 2024
1 parent 389bb69 commit 3b960fa
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/pages/plugins/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,6 @@ export default function PluginsInclude(updates) {

async function addSource(sourceType, value = "https://") {
let source;

const clipboardData = await getClipboardData();

if (clipboardData && clipboardData.startsWith("https")) {
value = clipboardData;
}

if (sourceType === "remote") {
source = await prompt("Enter plugin source", value, "url");
} else {
Expand All @@ -378,11 +371,4 @@ export default function PluginsInclude(updates) {
addSource(sourceType, source);
}
}

async function getClipboardData() {
return new Promise((resolve) => {
const { clipboard } = cordova.plugins;
clipboard.paste(resolve);
});
}
}

0 comments on commit 3b960fa

Please sign in to comment.