Spaces:
Runtime error
Runtime error
Make share btn window future-proof
Browse files- 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');
|