@thoughtbot/superglue 2.0.0-alpha.5 → 2.0.0-alpha.7

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.
@@ -6059,7 +6059,21 @@ var rootReducer = {
6059
6059
  };
6060
6060
 
6061
6061
  // lib/index.tsx
6062
- var cable = createConsumer();
6062
+ function getConfig(name) {
6063
+ if (typeof document !== "undefined") {
6064
+ const element = document.head.querySelector(
6065
+ `meta[name='action-cable-${name}']`
6066
+ );
6067
+ if (element) {
6068
+ return element.getAttribute("content") || "/cable";
6069
+ } else {
6070
+ return "/cable";
6071
+ }
6072
+ } else {
6073
+ return "/cable";
6074
+ }
6075
+ }
6076
+ var cable = createConsumer(getConfig("url"));
6063
6077
  var hasWindow2 = typeof window !== "undefined";
6064
6078
  var createHistory = () => {
6065
6079
  if (hasWindow2) {