Skip to content

Commit

Permalink
Merge pull request #1023 from bajrangCoder/main
Browse files Browse the repository at this point in the history
removed auto paste of url on plugin page
  • Loading branch information
bajrangCoder authored Sep 1, 2024
2 parents 389bb69 + 3b960fa commit ea5d533
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 ea5d533

Please sign in to comment.