Skip to content

Commit

Permalink
add frame and popup for chrome - #24
Browse files Browse the repository at this point in the history
  • Loading branch information
kensoh committed Jul 5, 2017
1 parent ea65716 commit 59f48f8
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 37 deletions.
5 changes: 5 additions & 0 deletions src/tagui_chrome.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
echo "[tagui] INPUT - \n" . "[" . $tagui_count . "] " . $tagui_intent . "\n";
$client->send($tagui_intent); $intent_result_string = trim($client->receive());

// retrieve message a second time for some Target methods as the real message is the second incoming message
if (strpos($tagui_intent,'Target.sendMessageToTarget') !== false) $intent_result_string = trim($client->receive());
else if (strpos($tagui_intent,'Target.attachToTarget') !== false) $intent_result_string = trim($client->receive());
else if (strpos($tagui_intent,'Target.detachFromTarget') !== false) $intent_result_string = trim($client->receive());

// save intent_result to interface out-file
echo "[tagui] OUTPUT - \n" . "[" . $tagui_count . "] " . $intent_result_string . "\n\n";
file_put_contents('tagui_chrome.out',"[" . $tagui_count . "] " . $intent_result_string); usleep($scan_period);}
Expand Down
Loading

0 comments on commit 59f48f8

Please sign in to comment.