Add version history, screenshots, embed generator, collections, npm search, format-on-save, and custom fonts
This commit is contained in:
@@ -21,9 +21,11 @@ async function init() {
|
||||
return;
|
||||
}
|
||||
|
||||
// Theme
|
||||
// URL params
|
||||
const params = new URLSearchParams(location.search);
|
||||
if (params.get('theme') === 'dark') document.body.classList.add('dark');
|
||||
if (params.get('tabs') === '0') document.body.classList.add('no-tabs');
|
||||
const autoRun = params.get('run') !== '0';
|
||||
|
||||
try {
|
||||
const fiddle = await loadFiddle(match[1]);
|
||||
|
||||
Reference in New Issue
Block a user