only return from show-url if in server context

This commit is contained in:
Luke Edwards
2018-01-06 16:11:39 -08:00
parent 1b73baabce
commit 7cef1f1120

View File

@@ -2,10 +2,8 @@
<script>
export default {
preload(foo) {
let url = foo.url;
console.log('> i am here', url, foo);
return { url };
preload({ url }) {
if (url) return { url };
}
};
</script>