Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ff2balex
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lex gaMe
ff2balex
Commits
08a023fb
Commit
08a023fb
authored
5 months ago
by
Lucie Bader
Browse files
Options
Downloads
Patches
Plain Diff
popup -> plugin
parent
1b0a9679
No related branches found
No related tags found
1 merge request
!8
Test final
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
manifest.json
+1
-1
1 addition, 1 deletion
manifest.json
src/background/background.js
+1
-1
1 addition, 1 deletion
src/background/background.js
src/plugin/plugin.html
+1
-1
1 addition, 1 deletion
src/plugin/plugin.html
src/plugin/plugin.js
+2
-2
2 additions, 2 deletions
src/plugin/plugin.js
with
5 additions
and
5 deletions
manifest.json
+
1
−
1
View file @
08a023fb
...
...
@@ -31,7 +31,7 @@
"browser_action"
:
{
"default_area"
:
"navbar"
,
"default_popup"
:
"src/p
opup/popup
.html"
,
"default_popup"
:
"src/p
lugin/plugin
.html"
,
"default_icon"
:
{
"16"
:
"src/assets/icons/logo.png"
},
...
...
This diff is collapsed.
Click to expand it.
src/background/background.js
+
1
−
1
View file @
08a023fb
...
...
@@ -431,7 +431,7 @@ function handleWorkerMessage(event) {
initWorker
();
// ─────────────────────────────────────────────────────────────────────────────
// Écoute des messages de l
a popup
et transmission au WebWorker
// Écoute des messages de l
'extension
et transmission au WebWorker
// ─────────────────────────────────────────────────────────────────────────────
browser
.
runtime
.
onMessage
.
addListener
(
async
(
message
,
sender
,
sendResponse
)
=>
{
log
(
"
[Background] Message reçu :
"
,
message
);
...
...
This diff is collapsed.
Click to expand it.
src/p
opup/popup
.html
→
src/p
lugin/plugin
.html
+
1
−
1
View file @
08a023fb
...
...
@@ -417,6 +417,6 @@
</div>
<script
src=
"../utils/api.js"
></script>
<script
src=
"p
opup
.js"
></script>
<script
src=
"p
lugin
.js"
></script>
</body>
</html>
This diff is collapsed.
Click to expand it.
src/p
opup/popup
.js
→
src/p
lugin/plugin
.js
+
2
−
2
View file @
08a023fb
log
(
"
✅ p
opup
.js chargé avec succès !
"
);
log
(
"
✅ p
lugin
.js chargé avec succès !
"
);
// ==========================
// Fonctions utilitaires
...
...
@@ -341,7 +341,7 @@ document.getElementById("open-stats")?.addEventListener("click", () => {
// Gestion des messages et du stockage
// ==========================
browser
.
runtime
.
onMessage
.
addListener
(
async
(
message
)
=>
{
log
(
"
📩 Message reçu dans p
opup
.js :
"
,
message
);
log
(
"
📩 Message reçu dans p
lugin
.js :
"
,
message
);
if
(
message
.
action
===
"
updateUI
"
)
{
await
updateExtension
();
}
else
if
(
message
.
action
===
"
notify
"
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment