diff --git a/docs/content/1.setup/6.html.md b/docs/content/1.setup/6.html.md index 555fc1d..f736739 100644 --- a/docs/content/1.setup/6.html.md +++ b/docs/content/1.setup/6.html.md @@ -14,15 +14,13 @@ description: Minimal examples of setting up a denied file. - Create a file in any directory of your choice and name it whatever you want. For this example, we will name it `denied.html`. -- Add the following code to bottom of the body tag in the `denied.html` file: +- Add the following script to the `denied.html` file: + ::code-group ::code-block{label="code"} - ```javascript - if (!localStorage["auth"] && new URL(document.all.rcheck.href).password) { - window.location.reload(); - localStorage["auth"] = true; - } + ```html + ``` :: ::code-block{label="denied.html"} @@ -33,16 +31,11 @@ description: Minimal examples of setting up a denied file. Access Denied +

Access Denied

You do not have permission to access this resource.

- ``` diff --git a/packages/express/package.json b/packages/express/package.json index 4354df2..814af01 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -27,7 +27,7 @@ }, "homepage": "https://github.com/ruby-network/corlink#readme", "author": "Ruby Network", - "license": "AGPL-3.0", + "license": "GPL-3.0", "dependencies": { "@babel/cli": "^7.23.9", "@babel/core": "^7.23.9", diff --git a/packages/fastify/package.json b/packages/fastify/package.json index 993b4d9..87ca083 100644 --- a/packages/fastify/package.json +++ b/packages/fastify/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/ruby-network/corlink#readme", "author": "Ruby Network", - "license": "AGPL-3.0", + "license": "GPL-3.0", "dependencies": { "@babel/cli": "^7.23.9", "@babel/core": "^7.23.9", diff --git a/packages/sdk/browser/index.js b/packages/sdk/browser/index.js index 5ebd21e..773f187 100644 --- a/packages/sdk/browser/index.js +++ b/packages/sdk/browser/index.js @@ -4,6 +4,6 @@ try { localStorage["auth"] = true; } } -catch (e) { - console.log(e); +catch { + // do nothing } diff --git a/packages/sdk/browser/package.json b/packages/sdk/browser/package.json index 536e04a..09e97b0 100644 --- a/packages/sdk/browser/package.json +++ b/packages/sdk/browser/package.json @@ -16,7 +16,7 @@ }, "homepage": "https://github.com/ruby-network/corlink#readme", "author": "Ruby Network", - "license": "AGPL-3.0", + "license": "GPL-3.0", "dependencies": { }, "devDependencies": { diff --git a/packages/sdk/node/package.json b/packages/sdk/node/package.json index ed3ea79..adcf146 100644 --- a/packages/sdk/node/package.json +++ b/packages/sdk/node/package.json @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/ruby-network/corlink#readme", "author": "Ruby Network", - "license": "AGPL-3.0", + "license": "GPL-3.0", "dependencies": { "@babel/cli": "^7.23.9", "@babel/core": "^7.23.9",