@pb33f/cowboy-components 0.5.3 → 0.5.4

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.
@@ -266,9 +266,7 @@ let TheDoctor = class TheDoctor extends LitElement {
266
266
  this.whoAmI();
267
267
  }
268
268
  };
269
- // TODO re-enable
270
269
  this.bus.connectToBroker(config);
271
- //this.startTheDoctor()
272
270
  }
273
271
  addClickTrack(node) {
274
272
  history.pushState({ activeNode: node.idHash }, "", `?view=explore&node=${node.idHash}`);
@@ -1674,6 +1672,13 @@ let TheDoctor = class TheDoctor extends LitElement {
1674
1672
  this.creditTicker.credits = this.session.creditsRemaining;
1675
1673
  }
1676
1674
  this.creditTicker.visible = true;
1675
+ const url = new URL(window.location.href);
1676
+ const urlParam = url.searchParams.get('url');
1677
+ if (urlParam) {
1678
+ //this.urlInput.value = urlParam;
1679
+ this.activeURL = urlParam;
1680
+ this.lintSpec('', urlParam);
1681
+ }
1677
1682
  LintingService.fetchAllHowToFix().then((result) => {
1678
1683
  if (result) {
1679
1684
  result.forEach((howToFix) => {
@@ -1741,7 +1746,7 @@ let TheDoctor = class TheDoctor extends LitElement {
1741
1746
  }
1742
1747
  }).catch((e) => {
1743
1748
  this.platformUnavailable(e);
1744
- console.error("cannot start session");
1749
+ console.error("cannot start session", e);
1745
1750
  });
1746
1751
  }
1747
1752
  fetchRulesetMap() {
@@ -1868,7 +1873,7 @@ let TheDoctor = class TheDoctor extends LitElement {
1868
1873
  const url = new URL(window.location.href);
1869
1874
  const urlParam = url.searchParams.get('url');
1870
1875
  if (urlParam) {
1871
- this.urlInput.value = urlParam;
1876
+ //this.urlInput.value = urlParam;
1872
1877
  this.activeURL = urlParam;
1873
1878
  this.lintSpec('', urlParam);
1874
1879
  return;