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>
- share_btn.py +1 -1
share_btn.py
CHANGED
@@ -85,7 +85,7 @@ ${outputImgUrl}
|
|
85 |
});
|
86 |
|
87 |
const paramsStr = params.toString();
|
88 |
-
window.open(
|
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');
|