mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
* 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
18 lines
387 B
JavaScript
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");
|