Skip to content

Commit

Permalink
[FB] Workflow | ESM Migration
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed May 4, 2024
1 parent 3736131 commit 60e846d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/user-agent_scrape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
' "linux": "${{ needs.linux.outputs.msedge_stable_ua }}",'
" \"mac\": \"$(echo "${{ needs.linux.outputs.msedge_stable_ua }}" | sed "s/X11; Linux x86_64/Macintosh; Intel Mac OS X 10_15_7/")\","
'};'
"// First Aid for ESM migration"
"// ESM Migration"
"window.FIREFOX_STABLE_UA = FIREFOX_STABLE_UA;"
"window.CHROME_STABLE_UA = CHROME_STABLE_UA;"
"window.MSEDGE_STABLE_UA = MSEDGE_STABLE_UA;"
Expand All @@ -153,7 +153,7 @@ jobs:
- name: Commit & Push
run: |
cp ~/ua_data.js browser/extensions/webextensions/floorp-system/shared/ua_data.js
cp ~/ua_data.js browser/base/content/ua_data.js
cp ~/ua_data.js browser/base/content/browser-ua-data.mjs
if [ "$(git diff HEAD)" != "" ]; then
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand Down
4 changes: 2 additions & 2 deletions browser/base/content/floorp-scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ var { FloorpAppConstants } = ChromeUtils.importESModule(
"resource:///modules/FloorpAppConstants.sys.mjs"
);

Services.scriptloader.loadSubScript("chrome://browser/content/ua_data.js", this);

import("chrome://browser/content/browser-ua-data.mjs");
import("chrome://browser/content/browser-overrides.mjs");

import("chrome://browser/content/browser-commands.mjs").then(({ gFloorpCommands }) => {
window.gFloorpCommands = gFloorpCommands
});
Expand Down
19 changes: 0 additions & 19 deletions browser/base/content/ua_data.js

This file was deleted.

2 changes: 1 addition & 1 deletion browser/base/jar.mn
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ browser.jar:
content/browser/browser-ssb-manager.mjs (content/browser-ssb-manager.mjs)
content/browser/browser-ssb-window.mjs (content/browser-ssb-window.mjs)
content/browser/browser-tabbar.mjs (content/browser-tabbar.mjs)
content/browser/browser-ua-data.mjs (content/browser-ua-data.mjs)
content/browser/browser-UI-custom.mjs (content/browser-UI-custom.mjs)
content/browser/browser-verticaltabs.mjs (content/browser-verticaltabs.mjs)

Expand All @@ -45,5 +46,4 @@ browser.jar:
# library
content/browser/BMS-extension-needs-white-bg.txt (sidebar-extension/BMS-extension-needs-white-bg.txt)
content/browser/qr-code-styling/qr-code-styling.js (library/qr-code-styling/[email protected])
content/browser/ua_data.js (content/ua_data.js)

0 comments on commit 60e846d

Please sign in to comment.