Skip to content

Commit ea5d533

Browse files
authored
Merge pull request #1023 from bajrangCoder/main
removed auto paste of url on plugin page
2 parents 389bb69 + 3b960fa commit ea5d533

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/pages/plugins/plugins.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,6 @@ export default function PluginsInclude(updates) {
355355

356356
async function addSource(sourceType, value = "https://") {
357357
let source;
358-
359-
const clipboardData = await getClipboardData();
360-
361-
if (clipboardData && clipboardData.startsWith("https")) {
362-
value = clipboardData;
363-
}
364-
365358
if (sourceType === "remote") {
366359
source = await prompt("Enter plugin source", value, "url");
367360
} else {
@@ -378,11 +371,4 @@ export default function PluginsInclude(updates) {
378371
addSource(sourceType, source);
379372
}
380373
}
381-
382-
async function getClipboardData() {
383-
return new Promise((resolve) => {
384-
const { clipboard } = cordova.plugins;
385-
clipboard.paste(resolve);
386-
});
387-
}
388374
}

0 commit comments

Comments
 (0)