Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 13, 2022
1 parent fcc8948 commit 52011d2
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions packages/kit/src/runtime/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1678,63 +1678,6 @@ function handle_error(error, event) {
);
}

<<<<<<< HEAD
=======
// TODO remove for 1.0
const properties = [
'hash',
'href',
'host',
'hostname',
'origin',
'pathname',
'port',
'protocol',
'search',
'searchParams',
'toString',
'toJSON'
];

/**
* @param {'from' | 'to'} type
* @param {import('types').NavigationTarget} target
*/
function add_url_properties(type, target) {
for (const prop of properties) {
Object.defineProperty(target, prop, {
get() {
throw new Error(
`The navigation shape changed - ${type}.${prop} should now be ${type}.url.${prop}`
);
},
enumerable: false
});
}

Object.defineProperty(target, 'routeId', {
get() {
throw new Error(
`The navigation shape changed - ${type}.routeId should now be ${type}.route.id`
);
},
enumerable: false
});

return target;
}

function pre_update() {
if (DEV) {
return () => {
check_for_removed_attributes();
};
}

return () => {};
}

>>>>>>> master
function reset_focus() {
const autofocus = document.querySelector('[autofocus]');
if (autofocus) {
Expand Down

0 comments on commit 52011d2

Please sign in to comment.