Skip to content

Commit

Permalink
Optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Notplayingallday383 committed Jul 25, 2023
1 parent b775c02 commit 2721bfb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion ultraviolet-static/public/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h1>About Sodium</h1>
<p>Sodium is an Ultraviolet-based proxy site used for evading internet censorship.</p>
</div>
<div class="flex-center desc">
<p>v1.0.0 RTM - Stable Release (Released: July 20th 2023 - Build: 98)</p>
<p>v1.0.0 Patch 1 - Stable Release (Released: July 20th 2023 - Build: 104)</p>
</div>
<div class="flex-center desc">
<p>Made with ❤️ by XSTARS!</p>
Expand Down
14 changes: 0 additions & 14 deletions ultraviolet-static/public/ads.js

This file was deleted.

11 changes: 0 additions & 11 deletions ultraviolet-static/public/register-sw.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
"use strict";
/**
* Distributed with Ultraviolet and compatible with most configurations.
*/
const stockSW = "/uv/sw.js";

/**
* List of hostnames that are allowed to run serviceworkers on http:
*/
const swAllowedHostnames = ["localhost", "127.0.0.1"];

/**
* Global util
* Used in 404.html and index.html
*/
async function registerSW() {
if (
location.protocol !== "https:" &&
Expand All @@ -23,7 +13,6 @@ async function registerSW() {
if (!navigator.serviceWorker)
throw new Error("Your browser doesn't support service workers.");

// Ultraviolet has a stock `sw.js` script.
await navigator.serviceWorker.register(stockSW, {
scope: __uv$config.prefix,
});
Expand Down

0 comments on commit 2721bfb

Please sign in to comment.