Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 6cd0065

Browse files
committed
Only copy to clipboard if browserpass isn't already using a copy action
1 parent aaff721 commit 6cd0065

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/background.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ chrome.runtime.onMessageExternal.addListener(function(request, sender) {
6868
}
6969

7070
// generate code
71-
copyToClipboard(otp.generate());
71+
var code = otp.generate();
72+
73+
// copy to clipboard
74+
if (!request.action.match(/^copy[A-Z]*/)) {
75+
copyToClipboard(otp.generate());
76+
}
7277
});
7378

7479
/**

0 commit comments

Comments
 (0)