pinokiod 1.3.29 → 1.3.30
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
CHANGED
|
@@ -713,9 +713,7 @@ const renderSelection = (e, force) => {
|
|
|
713
713
|
|
|
714
714
|
|
|
715
715
|
let target
|
|
716
|
-
if (
|
|
717
|
-
target = selection
|
|
718
|
-
} else {
|
|
716
|
+
if (location.hash && location.hash.length > 0) {
|
|
719
717
|
// document.querySelector(".bar").classList.remove("hidden")
|
|
720
718
|
//let id = getTarget(location.hash.slice(1))
|
|
721
719
|
let id = location.hash.slice(1)
|
|
@@ -753,6 +751,10 @@ const renderSelection = (e, force) => {
|
|
|
753
751
|
// if not triggered by an event, look for the target from the location hash
|
|
754
752
|
target = document.querySelector(selector)
|
|
755
753
|
}
|
|
754
|
+
} else {
|
|
755
|
+
if (selection) {
|
|
756
|
+
target = selection
|
|
757
|
+
}
|
|
756
758
|
}
|
|
757
759
|
|
|
758
760
|
|