akhaliq HF staff mishig HF staff commited on
Commit
0837c13
1 Parent(s): 266612d

Make share btn window future-proof (#9)

Browse files

- Make share btn window future-proof (2c28356ee922e2be13ce955b930e7af49cd35115)


Co-authored-by: Mishig Davaadorj <mishig@users.noreply.huggingface.co>

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');