mol_plot_all 1.2.1492 → 1.2.1493
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +9 -9
- package/web.js.map +1 -1
- package/web.mjs +9 -9
package/web.mjs
CHANGED
|
@@ -1924,20 +1924,20 @@ var $;
|
|
|
1924
1924
|
prefix;
|
|
1925
1925
|
static href(next) {
|
|
1926
1926
|
if (next === undefined) {
|
|
1927
|
-
next = $
|
|
1927
|
+
next = $mol_dom.location.href;
|
|
1928
1928
|
}
|
|
1929
1929
|
else if (!/^about:srcdoc/.test(next)) {
|
|
1930
1930
|
new $mol_after_frame(() => {
|
|
1931
1931
|
const next = this.href();
|
|
1932
|
-
const prev = $
|
|
1932
|
+
const prev = $mol_dom.location.href;
|
|
1933
1933
|
if (next === prev)
|
|
1934
1934
|
return;
|
|
1935
|
-
const history = $
|
|
1936
|
-
history.replaceState(history.state, $
|
|
1935
|
+
const history = $mol_dom.history;
|
|
1936
|
+
history.replaceState(history.state, $mol_dom.document.title, next);
|
|
1937
1937
|
});
|
|
1938
1938
|
}
|
|
1939
|
-
if ($
|
|
1940
|
-
$
|
|
1939
|
+
if ($mol_dom.parent && ($mol_dom.parent !== $mol_dom.self)) {
|
|
1940
|
+
$mol_dom.parent.postMessage(['hashchange', next], '*');
|
|
1941
1941
|
}
|
|
1942
1942
|
return next;
|
|
1943
1943
|
}
|
|
@@ -1945,7 +1945,7 @@ var $;
|
|
|
1945
1945
|
return this.link({});
|
|
1946
1946
|
}
|
|
1947
1947
|
static href_absolute() {
|
|
1948
|
-
return new URL(this.href(), $
|
|
1948
|
+
return new URL(this.href(), $mol_dom.location.href).toString();
|
|
1949
1949
|
}
|
|
1950
1950
|
static dict(next) {
|
|
1951
1951
|
var href = this.href(next && this.make_link(next)).split(/#!?/)[1] || '';
|
|
@@ -1996,7 +1996,7 @@ var $;
|
|
|
1996
1996
|
$mol_dom.history.pushState($mol_dom.history.state, $mol_dom.document.title, this.href());
|
|
1997
1997
|
}
|
|
1998
1998
|
static go(next) {
|
|
1999
|
-
$
|
|
1999
|
+
$mol_dom.location.href = this.link(next);
|
|
2000
2000
|
}
|
|
2001
2001
|
static encode(str) {
|
|
2002
2002
|
return encodeURIComponent(str).replace(/\(/g, '%28').replace(/\)/g, '%29');
|
|
@@ -2049,7 +2049,7 @@ var $;
|
|
|
2049
2049
|
], $mol_state_arg, "go", null);
|
|
2050
2050
|
$.$mol_state_arg = $mol_state_arg;
|
|
2051
2051
|
function $mol_state_arg_change() {
|
|
2052
|
-
$mol_state_arg.href($
|
|
2052
|
+
$mol_state_arg.href($mol_dom.location.href);
|
|
2053
2053
|
}
|
|
2054
2054
|
self.addEventListener('hashchange', $mol_state_arg_change);
|
|
2055
2055
|
})($ || ($ = {}));
|