Fakultas Ilmu Komputer UI

Commit 3eaf1505 authored by wajdifarid's avatar wajdifarid
Browse files

Make urls on popup.html to be opened on new tabs

parent 0d277118
......@@ -9,6 +9,12 @@ function toggleIcon(e) {
$('.panel-group').on('hidden.bs.collapse', toggleIcon);
$('.panel-group').on('shown.bs.collapse', toggleIcon);
$('body').on('click', 'a', function(){
chrome.tabs.create({url: $(this).attr('href')});
return false;
// Tell content script that our pop up is ready
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment