mishig HF staff commited on
Commit
2c28356
1 Parent(s): e0b92d6

Make share btn window future-proof

Browse files
Files changed (1) hide show
  1. share_btn.py +1 -1
share_btn.py CHANGED
@@ -85,7 +85,7 @@ ${outputImgUrl}
85
  });
86
 
87
  const paramsStr = params.toString();
88
- window.open(`https://huggingface.co/spaces/runwayml/stable-diffusion-inpainting/discussions/new?${paramsStr}`, '_blank');
89
 
90
  shareBtnEl.style.removeProperty('pointer-events');
91
  shareIconEl.style.removeProperty('display');
 
85
  });
86
 
87
  const paramsStr = params.toString();
88
+ window.open(`${window.location.href}/discussions/new?${paramsStr}`, '_blank');
89
 
90
  shareBtnEl.style.removeProperty('pointer-events');
91
  shareIconEl.style.removeProperty('display');