DNA transcription and translation in wasm with rust
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
417 B

import * as wasm from "wasm-dna-transcription-translation";
const urlParams = new URLSearchParams(window.location.search);
const strand = urlParams.get('strand');
try {
wasm.main(strand);
} catch(err) {
alert('Oh no! Something went wrong. Please check that your DNA strand only uses valid characters, and has a stop & start codon. You will now be redirected to the homepage.')
window.location.href = '/';
}