aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/messenger/index.js
blob: 0f18b4fca424e2aab1248ebb60a0a8b9d83b6c18 (plain) (blame)
1
2
3
4
5
6
7
8
module.exports = Ferdium =>
  class Messenger extends Ferdium {
    overrideUserAgent() {
      return window.navigator.userAgent
        .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '')
        .trim();
    }
  };