Fix url-preview.vue

This commit is contained in:
mei23 2018-08-16 03:05:28 +09:00
parent b37924edb8
commit d47217a71e

View file

@ -160,12 +160,12 @@ export default Vue.extend({
'web.tv',
'youtube.com',
'youtu.be'
].some(x => x == url.hostname || url.hostname.endsWith(`.${x}`))))
].some(x => x == url.hostname || url.hostname.endsWith(`.${x}`)))
this.player = info.player;
}
});
}
}
} // info.url
}) // json
}); // fetch
} // created
});
</script>