Skip to content

configure

Configure default options for Nostalgist.js. These options will be applied to all following emulator launches.

Nostalgist.configure({
style: {
position: 'static',
},
})
// The canvas element will have position: static
await Nostalgist.nes('flappybird.nes')
// The canvas element will have position: static too
await Nostalgist.nes('flappybird.nes')
// Reset all configurations to default
Nostalgist.resetToDefault()