Skip to content

Commit

Permalink
fallback to hardcoded fb-sdk for Mac (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ladamski authored Mar 25, 2024
1 parent 0242268 commit 0528e32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion surrogates/fb-sdk.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
(() => {
'use strict';
const facebookEntity = 'Facebook, Inc.';
const originalFBURL = document.currentScript.src;
const DEFAULT_FB_SDK_URL = 'https://connect.facebook.net/en_US/sdk.js?XFBML=false';
const originalFBURL = document?.currentScript?.src || DEFAULT_FB_SDK_URL;
let siteInit = function () {};
let fbIsEnabled = false;
let initData = {};
Expand Down

0 comments on commit 0528e32

Please sign in to comment.