aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/snapdrop/index.js
blob: 4e126b174492540212796947615d98d88452aef9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports = Ferdium =>
  class Snapdrop extends Ferdium {
    modifyRequestHeaders() {
      return [
        {
          headers: {
            // TODO: Rather than hardcoding like this, the user should set it for their individual installation of Ferdium
            'user-agent':
              'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36',
          },
          requestFilters: {
            urls: ['*://*/*'],
          },
        },
      ];
    }
  };