Fix onTabActivated parameter bug

use textContent instead of innerText