Socket
Socket
Sign inDemoInstall

nodebb-theme-oxide

Package Overview
Dependencies
2
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.38 to 5.0.39

14

lib/modules/toggleTheme.js

@@ -6,7 +6,8 @@ /* globals ajaxify */

const isDefault = document.documentElement.dataset.initialDark ? true : false;
if (isDefault) return;
const _updateTheme = (state) => {
const safeState = Boolean(state);
document.documentElement.setAttribute("dark", safeState);
localStorage.setItem("user:dark", safeState);
document.documentElement.setAttribute("dark", state);
localStorage.setItem("user:dark", state);
};

@@ -25,6 +26,3 @@

const isDefault = document.documentElement.dataset.initialDark ? true : false;
if (isDefault) return;
window.darkmode = localStorage.getItem("user:dark") ? true : false;
window.darkmode = Boolean(localStorage.getItem("user:dark"));
_updateTheme(window.darkmode);

@@ -31,0 +29,0 @@

{
"name": "nodebb-theme-oxide",
"description": "A theme that is based on the GitHub design.",
"version": "5.0.38",
"version": "5.0.39",
"homepage": "https://github.com/youhosi/nodebb-theme-oxide",

@@ -6,0 +6,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc