mirror of
https://github.com/imezx/Warp.git
synced 2025-04-25 07:30:02 +00:00
9 lines
258 B
JavaScript
9 lines
258 B
JavaScript
import { inBrowser } from '../../shared';
|
|
import { ref } from 'vue';
|
|
const hashRef = ref(inBrowser ? location.hash : '');
|
|
if (inBrowser) {
|
|
window.addEventListener('hashchange', () => {
|
|
hashRef.value = location.hash;
|
|
});
|
|
}
|
|
export { hashRef };
|