Skip to content

Commit

Permalink
v0.0.11 params issues
Browse files Browse the repository at this point in the history
  • Loading branch information
crosshj committed Aug 25, 2022
1 parent eba6837 commit 98913d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fiug/layout",
"version": "0.0.10",
"version": "0.0.11",
"description": "page layout for browser applications",
"main": "dist/layout.js",
"exports": {
Expand Down
11 changes: 1 addition & 10 deletions src/tabbed.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as dom from './dom.js';
import { randomId } from './utils.js';
import { randomId, getFilename } from './utils.js';

const createEmptyDom = dom.createEmpty;
const createTabDom = dom.createTab;
Expand Down Expand Up @@ -30,15 +30,6 @@ export const closeTab = (parent, tab) => {
});
};

const getFilename = (target) => {
let filename = target.split("/").pop();
if(filename.includes("?file="))
filename = filename.split("?file=").pop();
if(filename.includes("&paneid="))
filename = filename.split("&paneid=").shift();
return filename;
};

export const closeAllMenus = () => {
try {
const openMenus = document.querySelectorAll('.tabs-menu.menu-open');
Expand Down

0 comments on commit 98913d4

Please sign in to comment.