mirror of
https://github.com/wassname/mad.git
synced 2026-09-09 11:26:26 +08:00
using grunt, added reason tracker prototype
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
popup.controller('PopupController', ['$scope',
|
||||
function($scope){
|
||||
|
||||
$scope.isBlocked = false;
|
||||
|
||||
$scope.addToBlock = function(){
|
||||
chrome.tabs.query({
|
||||
active: true,
|
||||
currentWindow: true
|
||||
}, function callback(tabs){
|
||||
var currentTab = tabs[0];
|
||||
console.log(currentTab);
|
||||
console.log(bkg);
|
||||
bkg.blockService.add(currentTab.url);
|
||||
$scope.isBlocked = true;
|
||||
$scope.$apply();
|
||||
});
|
||||
};
|
||||
$scope.testfunc = function(){
|
||||
alert("DOES WORK>?");
|
||||
}
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user