This commit is contained in:
salam committed 2026-09-06 13:38:13 +02:00
1 parent 16a5249de6
commit 32e4ef9f58
1 file changed
+5 -5
+5 -5
View File
@@ -78,11 +78,11 @@ class BoardDispatcher extends Component
public function copyResult()
{
$copystring = `Line One\nLine Two\nLine Three`;
// foreach ($this->results as $row) {
// $copystring .= "`" . implode("\t", $row) . "\n`";
// }
$this->js("navigator.clipboard.writeText(`Line One\nLine Two\nLine Three`)");
$copystring = '';
foreach ($this->results as $row) {
$copystring .= implode("\t", $row) . "\n";
}
$this->js("navigator.clipboard.writeText(`$copystring`)");
}