This commit is contained in:
syuilo 2018-10-08 01:14:46 +09:00
parent 03d0ce1f89
commit a780e7b936
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 1 additions and 5 deletions

View file

@ -163,7 +163,6 @@ export default Vue.extend({
}, },
onMessage(message) { onMessage(message) {
console.log(message);
// //
if (this.$store.state.device.enableSounds) { if (this.$store.state.device.enableSounds) {
const sound = new Audio(`${url}/assets/message.mp3`); const sound = new Audio(`${url}/assets/message.mp3`);

View file

@ -50,7 +50,6 @@ export default Vue.extend({
const reader = new FileReader(); const reader = new FileReader();
reader.onload = (e: any) => { reader.onload = (e: any) => {
this.checkExistence(e.target.result).then(result => { this.checkExistence(e.target.result).then(result => {
console.log(result);
if (result !== null) { if (result !== null) {
this.$emit('uploaded', result); this.$emit('uploaded', result);
return; return;
@ -58,7 +57,7 @@ export default Vue.extend({
// Upload if the file didn't exist yet // Upload if the file didn't exist yet
const buf = new Uint8Array(e.target.result); const buf = new Uint8Array(e.target.result);
let bin = ""; let bin = '';
// We use for-of loop instead of apply() to avoid RangeError // We use for-of loop instead of apply() to avoid RangeError
// SEE: https://stackoverflow.com/questions/9267899/arraybuffer-to-base64-encoded-string // SEE: https://stackoverflow.com/questions/9267899/arraybuffer-to-base64-encoded-string
for (const byte of buf) bin += String.fromCharCode(byte); for (const byte of buf) bin += String.fromCharCode(byte);
@ -107,8 +106,6 @@ export default Vue.extend({
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
.mk-uploader .mk-uploader
overflow auto overflow auto