mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-13 17:54:19 +01:00
setup i18n and ported all tools to standalone pages
This commit is contained in:
1 parent
fe3e54f979
commit
78dc6333f9
221 files changed
+30351
-11131
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import { setupToolInterface } from '../handlers/toolSelectionHandler.js';
|
||||
import { categories } from '../config/tools.js';
|
||||
|
||||
export class ShortcutsManager {
|
||||
@@ -181,14 +180,9 @@ export class ShortcutsManager {
|
||||
const tool = allTools.find(t => this.getToolId(t) === toolId);
|
||||
|
||||
if (tool && (tool as any).href) {
|
||||
// All tools now use href - navigate to the page
|
||||
const href = (tool as any).href;
|
||||
window.location.href = href.startsWith('/') ? href : `/${href}`;
|
||||
} else if (tool && (tool as any).id) {
|
||||
if (window.location.pathname === '/' || window.location.pathname === '/index.html') {
|
||||
setupToolInterface(toolId);
|
||||
} else {
|
||||
window.location.href = `/#tool-${toolId}`;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user