Skip to content

Commit

Permalink
Correction de l'erreur de syntaxe rapportée par web-ext lint
Browse files Browse the repository at this point in the history
web-ext ne connâit pas la syntaxe js moderne
  • Loading branch information
lovasoa committed Feb 8, 2021
1 parent 5cf4050 commit aad2398
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- run: jq ".version |= \"$VERSION\"" < manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
env:
VERSION: ${{ steps.version.outputs.version }}
- run: web-ext lint --self-hosted
- run: web-ext lint --self-hosted --warnings-as-errors
- run: web-ext build
- run: web-ext sign --channel=unlisted
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install --global web-ext
- run: web-ext lint --self-hosted
- run: web-ext lint --self-hosted --warnings-as-errors
- run: web-ext build
25 changes: 13 additions & 12 deletions ophirofox/content_scripts/config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
const ophirofox_config_list = [
class OphirofoxConfigULM {
static name = "ULM";
static domains = ["ens.fr"];
static LOGIN_URL = "http://proxy.rubens.ens.fr/login";
static AUTH_URL = // URL à charger pour pouvoir se logger sans mot de passe
"https://proxy.rubens.ens.fr/login?url=https://nouveau.europresse.com/access/ip/default.aspx?un=PSLT_1";
{
name: "ULM",
domains: ["ens.fr"],
LOGIN_URL: "http://proxy.rubens.ens.fr/login",
// URL à charger pour pouvoir se logger sans mot de passe
AUTH_URL:
"https://proxy.rubens.ens.fr/login?url=https://nouveau.europresse.com/access/ip/default.aspx?un=PSLT_1",
},
class OphirofoxConfigENSAM {
static name = "ENSAM";
static domains = ["ensam.eu"];
static LOGIN_URL = "http://rp1.ensam.eu/login";
static AUTH_URL =
"https://rp1.ensam.eu/login?url=https://nouveau.europresse.com/access/ip/default.aspx?un=AML";
{
name: "ENSAM",
domains: ["ensam.eu"],
LOGIN_URL: "http://rp1.ensam.eu/login",
AUTH_URL:
"https://rp1.ensam.eu/login?url=https://nouveau.europresse.com/access/ip/default.aspx?un=AML",
},
];

Expand Down

0 comments on commit aad2398

Please sign in to comment.