mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-15 04:14:46 +00:00
only return from show-url if in server context
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user