ehmkah / lesbar

Playing a little bit with browser-extensions
Apache License 2.0
1 stars 0 forks source link

Simplify process for firefox and chrome #5

Open ehmkah opened 5 years ago

ehmkah commented 5 years ago

Both extensions are nearly the same. So its easier, that the code is not redundant.

Combine code and use something like


  return window.msBrowser ||
    window.browser ||
    window.chrome;
})();```

stolen from https://www.smashingmagazine.com/2017/04/browser-extension-edge-chrome-firefox-opera-brave-vivaldi/