gotify-firefox

Send push notifications to your Gotify server from Firefox
git clone git://fossdaily.xyz/gotify-firefox
Log | Files | Refs | README | LICENSE

note.js (426B)


      1 "use strict";
      2 
      3 function getUrlParameter(name) {
      4   name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
      5   var regex = new RegExp("[\\?&]" + name + "=([^&#]*)");
      6   var results = regex.exec(location.search);
      7   return results === null
      8     ? ""
      9     : decodeURIComponent(results[1].replace(/\+/g, " "));
     10 }
     11 
     12 $(function () {
     13   var messageUrlParameter = getUrlParameter("message");
     14   $("#message").text(messageUrlParameter);
     15 });