using grunt, added reason tracker prototype

This commit is contained in:
qt31415926
2015-05-25 00:27:11 -04:00
parent 5272a14ca2
commit bf00f46341
55 changed files with 510 additions and 181 deletions
+23
View File
@@ -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>?");
}
}]);