Untested Code
This commit is contained in:
14
popup.js
Normal file
14
popup.js
Normal file
@@ -0,0 +1,14 @@
|
||||
$('#inbox_link').onclick = function() {
|
||||
$('#inbox').style('display: none;'); $('#send').style('display: block;');
|
||||
}
|
||||
$('#send_link').onclick = function() {
|
||||
$('#send').style('display: block;'); $('#send').style('display: none;');
|
||||
}
|
||||
|
||||
if (storage.getUnencrypted("number_id") === undefined)
|
||||
chrome.tabs.create({url: "options.html"});
|
||||
else {
|
||||
subscribeToPush(function(message) {
|
||||
console.log("GOT MESSAGE IN POPUP! " + message);
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user