Skip to content

Commit 0a07f2b

Browse files
committed
Support for self-defined panel name
1 parent b2e54b4 commit 0a07f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/weh-content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var weh = require('weh');
1414
var browser = weh.browser;
1515

1616
/* extracting running parameters from URL */
17-
var urlParams = function () {
17+
var urlParams = typeof _wehPanelName !== "undefined" && { panel: _wehPanelName } || function () {
1818
var m = /^([^\?]*)(?:\?(.*))?$/.exec(window.location.href);
1919
var params = {};
2020
if (m[2]) m[2].split("&").forEach(function (paramExpr) {

0 commit comments

Comments
 (0)