my eye

Fix cookie library reference

Committed 5048cb

--- a/canopy/static/enliven.js
+++ b/canopy/static/enliven.js

-import { _, cookies, go, upgradeLink } from '/static/web.js'
+import { _, go, upgradeLink } from '/static/web.js'
 
 let mode = 'site'
 const konamiCode = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13]
 
 // TODO $.load(...)
 document.addEventListener('DOMContentLoaded', ev => {
-  let currentColorMode = cookies.get('colormode')
+  let currentColorMode = Cookies.get('colormode')
   if (!currentColorMode) {
-    cookies.set('colormode', 'dark')
+    Cookies.set('colormode', 'dark')
     currentColorMode = 'dark'
   }
   document.documentElement.className = currentColorMode
     })
   })
 
-  if (cookies.get('rhythm') == 'on') {
+  if (Cookies.get('rhythm') == 'on') {
     document.querySelector('body').style.backgroundImage = 'url(/static/measure.png)'
   }
-  cookies.set('mediasoup-demo.user', `{"displayName": "${userName}"}`)
+  Cookies.set('mediasoup-demo.user', `{"displayName": "${userName}"}`)
 
   document.addEventListener('keydown', ev => {
     if (mode == 'room') {
       return
     }
     if (ev.altKey && ev.key == '.') {                // A-. toggle rhythm indicator
-      if (cookies.get('rhythm') == 'on') {
+      if (Cookies.get('rhythm') == 'on') {
         document.querySelector('body').style.backgroundImage = 'none'
-        cookies.set('rhythm', 'off')
+        Cookies.set('rhythm', 'off')
       } else {
         document.querySelector('body').style.backgroundImage = 'url(/static/measure.png)'
-        cookies.set('rhythm', 'on')
+        Cookies.set('rhythm', 'on')
       }
     } else if (ev.altKey && ev.key == 'c') {         // A-c toggle color mode
       toggleColorMode()
   mode = 'dark'
   if (document.documentElement.className == 'dark')
     mode = 'light'
-  cookies.set('colormode', mode)
+  Cookies.set('colormode', mode)
   document.documentElement.className = mode
 }
 
   } else if (mode == 'off' || mode == 'loading') {
     if (mode == 'off') {
       color = '93a1a1'
-      if (cookies.get('colormode') == 'dark')
+      if (Cookies.get('colormode') == 'dark')
         color = '586e75'
     } else if (mode == 'loading')
       color = '6c71c4'