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