Skip to content

Commit

Permalink
Merge pull request #4640 from coralproject/develop
Browse files Browse the repository at this point in the history
v9.0.8
  • Loading branch information
tessalt authored Jul 2, 2024
2 parents 9b5d878 + 63a2985 commit 575d4ee
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coralproject/talk",
"version": "9.0.7",
"version": "9.0.8",
"author": "The Coral Project",
"homepage": "https://coralproject.net/",
"sideEffects": [
Expand Down
7 changes: 5 additions & 2 deletions client/src/core/client/count/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { COUNT_SELECTOR } from "coral-framework/constants";
import detectCountScript from "coral-framework/helpers/detectCountScript";
import getCurrentScriptOrigin from "coral-framework/helpers/getCurrentScriptOrigin";
import resolveStoryURL from "coral-framework/helpers/resolveStoryURL";
import jsonp from "coral-framework/utils/jsonp";

Expand All @@ -23,7 +22,11 @@ interface DetectAndInjectArgs {

/** Detects count elements and use jsonp to inject the counts. */
function detectAndInject(opts: DetectAndInjectArgs = {}) {
const ORIGIN = getCurrentScriptOrigin();
// Get ORIGIN from the count.js script that we know will be on the page.
const ORIGIN = document
.querySelector(".coral-script")
?.getAttribute("src")
?.split("/assets")[0];
const STORY_URL = resolveStoryURL(window);

/** A map of references pointing to the count query arguments */
Expand Down
2 changes: 1 addition & 1 deletion common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "common",
"version": "9.0.7",
"version": "9.0.8",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "common",
"version": "9.0.7",
"version": "9.0.8",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coralproject/talk",
"version": "9.0.7",
"version": "9.0.8",
"author": "The Coral Project",
"homepage": "https://coralproject.net/",
"sideEffects": [
Expand Down

0 comments on commit 575d4ee

Please sign in to comment.