darode cfe6055a0c 2012-09-11 Dario Rodriguez <dario.rodriguez@artica.es>
* chrome_extension/manifest.json,
	chrome_extension/options.html,
	chrome_extension/background.html,
	chrome_extension/popup.html,
	chrome_extension/css/popup.css,
	chrome_extension/notification.html,
	chrome_extension/js/notification.js,
	chrome_extension/js/options.js,
	chrome_extension/js/background.js,
	chrome_extension/js/popup.js: Fixed extension to
	work with Chrome 2.x



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6954 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-11 16:09:43 +00:00

18 lines
387 B
JavaScript

console.log("hola");
var url = window.location.href;
var re = /\?event=(\d+)/;
console.log("hola");
if(re.exec(url)) {
if(!isNaN(RegExp.$1)) {
var eventId = RegExp.$1;
document.write(chrome.extension.getBackgroundPage().getNotification(eventId));
}
}
console.log("hola");
window.onload = function () {
setTimeout(function() {
window.close();
}, 10000);
}
console.log("hola");