git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit 66dac60c355d6002362afd833034c36062a8ce7c

use setTimeout if setImmediate is not available

Dominic Tarr committed on 8/21/2016, 2:46:32 AM
Parent: aced9005d3a8be64c8d93decc047283d941c6d5e

Files changed

modules/theme.jschanged
modules/theme.jsView
@@ -11,8 +11,10 @@
1111 id: '&JFa42U6HtPm9k+s+AmpDIAoTJJI/PzoRC/J/WCfduDY=.sha256',
1212 name: 'patchbay-minimal.css'
1313 }
1414
15+var next = 'undefined' === typeof setImmediate ? setTimeout : setImmediate
16+
1517 var link = document.head.appendChild(h('link', {rel: 'stylesheet'}))
1618 var activeTheme
1719
1820 function useTheme(id) {
@@ -30,9 +32,9 @@
3032 function useSavedTheme() {
3133 useTheme(localStorage.themeId || defaultTheme.id)
3234 }
3335
34-setImmediate(useSavedTheme)
36+next(useSavedTheme)
3537
3638 function themes() {
3739 return cat([
3840 pull.values([

Built with git-ssb-web