gstaff commited on
Commit
79f1db2
β€’
1 Parent(s): e42f489

Fix URL string for copy link.

Browse files
Files changed (1) hide show
  1. templates.py +1 -1
templates.py CHANGED
@@ -176,7 +176,7 @@ def copy_share_link_js(demo_type: DemoType) -> str:
176
  const url = new URL(window.location.href);
177
  url.searchParams.set('requirements', requirements);
178
  url.searchParams.set('code', code);
179
- await navigator.clipboard.writeText(url);
180
  return [code, requirements]
181
  }}"""
182
  raise NotImplementedError(f'{demo_type} is not a supported demo type')
 
176
  const url = new URL(window.location.href);
177
  url.searchParams.set('requirements', requirements);
178
  url.searchParams.set('code', code);
179
+ await navigator.clipboard.writeText(url.toString());
180
  return [code, requirements]
181
  }}"""
182
  raise NotImplementedError(f'{demo_type} is not a supported demo type')