We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26098c4 commit 3527886Copy full SHA for 3527886
docs/.vitepress/theme/components/playground-block.vue
@@ -141,7 +141,9 @@ export default {
141
(typeof window !== "undefined" &&
142
window.location.hash.slice(1)) ||
143
""
144
- if (serializedString !== this.serializedString) {
+ if (!serializedString && this.serializedString) {
145
+ history.replaceState(null, "", `#${this.serializedString}`)
146
+ } else if (serializedString !== this.serializedString) {
147
const state = deserializeState(serializedString)
148
this.code = state.code || DEFAULT_CODE
149
this.rules =
0 commit comments