docusaurus/website/dogfooding/clientModuleExample.ts
Sébastien Lorber 3b64aa6107
fix(v2): BaseUrl issue banner insertion should be prevented if JS can load (#4155)
* restore useBannerRemover

* fix BaseUrlIssueBanner issues
2021-02-02 16:43:25 +01:00

16 lines
463 B
TypeScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
export function onRouteUpdate({location}: {location: Location}) {
// console.log('onRouteUpdate', {location});
}
if (ExecutionEnvironment.canUseDOM) {
// console.log('client module example log');
}