Merge pull request #1107 from daslyfe/fanchor

change fanchor to 0
This commit is contained in:
Felix Roos 2024-05-31 10:25:24 +02:00 committed by GitHub
commit 2cda78d2db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 118 additions and 20 deletions

View file

@ -94,6 +94,13 @@ export function Repl({ embedded = false }) {
window.location.hash = '#' + code2hash(code);
setDocumentTitle(code);
const viewingPatternData = getViewingPatternData();
try {
const metadata = getMetadata(code);
setVersionDefaults(metadata.version);
} catch (err) {
console.error('Error parsing metadata..');
console.error(err);
}
const data = { ...viewingPatternData, code };
let id = data.id;
const isExamplePattern = viewingPatternData.collection !== userPattern.collection;