Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Seniors
craig1617
Commits
ced83277
Commit
ced83277
authored
Nov 29, 2016
by
Craig Earley
Browse files
content.js has demo and test modes
parent
25da7a3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/js/content.js
View file @
ced83277
var
test
=
0
;
var
demo
=
1
;
chrome
.
runtime
.
onMessage
.
addListener
(
function
(
msg
)
{
/* We received a message, let's do as instructed */
// if (msg.action == 'match') {
console
.
log
(
msg
.
action
);
// }
if
(
test
){
console
.
log
(
msg
.
action
);}
if
(
demo
){
window
.
alert
(
msg
.
action
);}
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment