Browse Source

Serve sw-pleroma.js properly

tags/v0.9.9
href 5 years ago
parent
commit
fa5ec765d9
No known key found for this signature in database GPG Key ID: EE8296C1A152C325
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      lib/pleroma/plugs/instance_static.ex
  2. +1
    -1
      lib/pleroma/web/endpoint.ex

+ 1
- 1
lib/pleroma/plugs/instance_static.ex View File

@@ -21,7 +21,7 @@ defmodule Pleroma.Plugs.InstanceStatic do
end
end

@only ~w(index.html static emoji packs sounds images instance favicon.png)
@only ~w(index.html static emoji packs sounds images instance favicon.png sw.js sw-pleroma.js)

def init(opts) do
opts


+ 1
- 1
lib/pleroma/web/endpoint.ex View File

@@ -25,7 +25,7 @@ defmodule Pleroma.Web.Endpoint do
at: "/",
from: :pleroma,
only:
~w(index.html static finmoji emoji packs sounds images instance sw.js favicon.png schemas doc)
~w(index.html static finmoji emoji packs sounds images instance sw.js sw-pleroma.js favicon.png schemas doc)
)

# Code reloading can be explicitly enabled under the


Loading…
Cancel
Save