Skip to content

Commit 3285101

Browse files
committed
refactor(QrcodeStream): remove paused prop
The same thing can be achieved with the `camera` prop. BREAKING CHANGE: `paused` prop removed. Use `camera` instead.
1 parent 3b14bd9 commit 3285101

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/components/QrcodeStream.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ export default {
3838
mixins: [CommonAPI],
3939
4040
props: {
41-
paused: {
42-
type: Boolean,
43-
default: false
44-
},
45-
4641
camera: {
4742
type: String,
4843
default: "rear",
@@ -68,11 +63,7 @@ export default {
6863
6964
computed: {
7065
shouldStream() {
71-
return (
72-
this.paused === false &&
73-
this.destroyed === false &&
74-
this.camera !== "off"
75-
);
66+
return this.destroyed === false && this.camera !== "off";
7667
},
7768
7869
shouldScan() {

0 commit comments

Comments
 (0)