Skip to content

Commit

Permalink
Additional code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DispatchCommit committed Mar 23, 2021
1 parent 9729900 commit a460f1a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 46 deletions.
4 changes: 0 additions & 4 deletions components/Channel/Countdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,5 @@
return `${days}${timeObj.h}:${timeObj.m}:${timeObj.s}`;
},
},
mounted() {
},
};
</script>
3 changes: 0 additions & 3 deletions components/Chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,7 @@
this.connecting = false;
// TODO: replace with hcaptcha
this.userToken.recaptcha = null;
// Get RECAPTCHA v3 Token
// this.userToken.recaptcha = await this.getRecaptchaToken( 'connect' );
bitwaveChat.onHydrate = this.onHydration;
bitwaveChat.rcvMessageBulk = this.rcvMessageBulk;
Expand Down
10 changes: 0 additions & 10 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ module.exports = {
'@nuxtjs/axios',
'@nuxtjs/device',
'@nuxtjs/pwa',
/*'@nuxtjs/recaptcha',*/
'@nuxtjs/toast',
'@nuxtjs/sentry',
'cookie-universal-nuxt',
Expand Down Expand Up @@ -296,15 +295,6 @@ module.exports = {
],
},

/*
** reCAPTCHA v3
*/
/*recaptcha: {
hideBadge: true,
siteKey: '6LcEX8QUAAAAADjiUPfbzkyn0KYAaEK263quzCGh',
version: 3,
},*/

/*
** Sentry
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bitwave.tv",
"version": "1.26.0",
"version": "1.26.1",
"description": "An open platform live streaming service for creators to freely express themselves.",
"author": "Dispatch",
"scripts": {
Expand Down
28 changes: 0 additions & 28 deletions pages/_watch/replay/_replay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -405,34 +405,6 @@
displayCurrentQuality: true,
});
// Autoplay detection magic
/*const autoPlayEvents = [ 'loadedmetadata', 'durationchange' ];
const autoPlayListener = event => {
// Attempt Autoplay
const attemptAutoplay = () => {
this.player.play()
.then(() => {
if ( process.env.APP_DEBUG ) console.log( `Autoplayed` )
})
.catch ( error => {
if ( process.env.APP_DEBUG ) console.log( `Autoplay prevented, Attempting to autoplay muted.`, error );
this.player.muted( true );
this.player.play();
});
};
if (event.type === 'durationchange' && this.player.duration() === Infinity) {
attemptAutoplay();
this.player.off( autoPlayEvents, autoPlayListener );
}
if (event.type === 'loadedmetadata') {
attemptAutoplay();
this.player.off( autoPlayEvents, autoPlayListener );
}
};
this.player.on( autoPlayEvents, autoPlayListener ); //*/
// Video Player Ready
this.player.ready( async () => {
// Restore Volume & mute
Expand Down

0 comments on commit a460f1a

Please sign in to comment.