Coder Social home page Coder Social logo

web-push's People

Contributors

abdulhannanali avatar aliams avatar arcturus avatar brajkowski avatar carpasse avatar chocolateloverraj avatar collierrgbsitisfise avatar delapuente avatar delfuego avatar dependabot[bot] avatar eoger avatar gbhrdt avatar georgetailor avatar glasgio avatar lodott avatar marco-c avatar nerikeshi-k avatar nikeee avatar oldbig avatar renegadehomie avatar renovate[bot] avatar rohit-gohri avatar sarpdoruk avatar seregase avatar shahata avatar shahrukh330 avatar sw1tchdev avatar talater avatar tim-kuteev avatar zalun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

web-push's Issues

Unit test for GCM

The sendNotification tests should be extended to test the GCM case as well.

Check if the files defined in the 'offline' importScripts option actually exist

Currently, we don't check if the files defined in importScripts actually exist and we directly add the code to import them in the service worker.
We should check if they exist and throw an exception or print a warning message if they don't.

We could add this feature either to oghliner or sw-precache, @mykmelez what do you think? It really depends on whether we plan to remove the dependency on sw-precache in the future.

Selenium test for TTL option

Register for notifications, close browser, send notification, open browser, check if notification has arrived.

Test error with selenium-webdriver 2.48.0

undefined:1178

    vlog(2, () => this + ' scheduling notifications', this);

             ^

SyntaxError: Unexpected token )

    at goog.loadModuleFromSource_ (/home/travis/build/marco-c/web-push/node_modules/selenium-webdriver/lib/goog/base.js:1123:19)

    at Object.goog.loadModule (/home/travis/build/marco-c/web-push/node_modules/selenium-webdriver/lib/goog/base.js:1085:46)

    at /home/travis/build/marco-c/web-push/node_modules/selenium-webdriver/lib/webdriver/promise.js:1:6

    at Object.exports.runInContext (vm.js:64:17)

    at Object.Context.closure.goog.retrieveAndExecModule_ (/home/travis/build/marco-c/web-push/node_modules/selenium-webdriver/_base.js:135:8)

    at <anonymous>:1:6

    at Object.exports.runInContext (vm.js:64:17)

    at Context.closure.closure.vm.createContext.CLOSURE_IMPORT_SCRIPT (/home/travis/build/marco-c/web-push/node_modules/selenium-webdriver/_base.js:104:12)

    at Object.goog.importScript_ (/home/travis/build/marco-c/web-push/node_modules/selenium-webdriver/lib/goog/base.js:879:9)

    at Object.goog.importModule_ (/home/travis/build/marco-c/web-push/node_modules/selenium-webdriver/lib/goog/base.js:900:14)

npm ERR! Test failed.  See above for more details.

Download Firefox Nightly automatically when running the Selenium script

We could download it automatically and then do:

var firefox = require('selenium-webdriver/firefox');
var binary = new firefox.Binary('/path/to/firefox-bin');
var options = new firefox.Options().setBinary(binary);
var driver = new firefox.Driver(options);

Instead of:

var driver = new webdriver.Builder()
    .forBrowser('firefox')
    .build();

Fix code style in index.js

There are strings enclosed in double quotes and other strings in single quotes. I prefer single quotes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.