      loadFromUrl();
        
        // Auto-save to localStorage
        editor.on('change', function() {
            localStorage.setItem('cursed-playground-code', editor.getValue());
        });

        // Load saved code
        const saved = localStorage.getItem('cursed-playground-code');
        if (saved && !new URLSearchParams(window.location.search).get('code')) {
            editor.setValue(saved);
        }
    </script>
</body>
</html>
