nodebb-theme-harmony
Advanced tools
Comparing version 1.0.0-beta.21 to 1.0.0-beta.22
{ | ||
"name": "nodebb-theme-harmony", | ||
"version": "1.0.0-beta.21", | ||
"version": "1.0.0-beta.22", | ||
"nbbpm": { | ||
@@ -5,0 +5,0 @@ "compatibility": "^3.0.0" |
@@ -40,3 +40,3 @@ 'use strict'; | ||
function setupMobileMenu() { | ||
require(['api'], function (api) { | ||
require(['hooks', 'api', 'navigator'], function (hooks, api, navigator) { | ||
$('[component="sidebar/toggle"]').on('click', async function () { | ||
@@ -53,2 +53,5 @@ const sidebarEl = $('.sidebar'); | ||
$(window).trigger('action:sidebar.toggle'); | ||
if (ajaxify.data.template.topic) { | ||
hooks.fire('action:navigator.update', { newIndex: navigator.getIndex() }); | ||
} | ||
}); | ||
@@ -55,0 +58,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
271738
383