someone-in-the-world Claude Sonnet 4.6 commited on
Commit
8b178bf
·
1 Parent(s): 2cf368d

Wrap mode_toggle.js as arrow function to match Gradio js= convention

Browse files
Files changed (1) hide show
  1. static/mode_toggle.js +2 -0
static/mode_toggle.js CHANGED
@@ -1,3 +1,4 @@
 
1
  window.__selectedMode = 'fast';
2
  window.__setMode = function(m) {
3
  window.__selectedMode = m;
@@ -6,3 +7,4 @@ window.__setMode = function(m) {
6
  if (fast) fast.classList.toggle('mode-btn-active', m === 'fast');
7
  if (hd) hd.classList.toggle('mode-btn-active', m === 'high_detail');
8
  };
 
 
1
+ () => {
2
  window.__selectedMode = 'fast';
3
  window.__setMode = function(m) {
4
  window.__selectedMode = m;
 
7
  if (fast) fast.classList.toggle('mode-btn-active', m === 'fast');
8
  if (hd) hd.classList.toggle('mode-btn-active', m === 'high_detail');
9
  };
10
+ }