-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackground_diff
70 lines (70 loc) · 1.89 KB
/
background_diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
445c445,447
< console.assert(port.name == "knockknock");
---
> console.assert(port.name == "techknow_onLoad");
>
>
447a450
> console.log(msg);
449,477c452,477
< if (msg.joke == "Knock knock"){
< console.log("Getting to First Step");
< port.postMessage({question: "Who's there?"});
< }
< else if (msg.answer == "Madame"){
< console.log("Getting to Second Step");
< port.postMessage({question: "Madame who?"});
< }
< else if (msg.answer == "Madame... Bovary"){
< console.log("Getting to Final Step");
< if(curUrl == "facebook"){
<
< var guidePassed = JSONfn.stringify(tour);
<
< port.postMessage({
< question: "I don't get it.",
< guides: guidePassed
< });
< } else if (curUrl == "amazon") {
< console.log("we're at amazon");
< // port.postMessage({
< // question: "I don't get it.",
< // guides: facebookIntro
< // });
< } else {
< port.postMessage({
< question: "MUHAHAHAHAHA!",
< });
< }
---
> if (msg.request == "inject_guide_class"){
>
> console.log('Getting to Injecting Guide Class');
> // console.log("Getting to Final Step");
> // if(curUrl == "facebook"){
>
> // var guidePassed = JSONfn.stringify(tour);
>
> // port.postMessage({
> // response: "guides_injected_properly",
> // guides: guidePassed
> // });
> // } else if (curUrl == "amazon") {
> // console.log("we're at amazon");
> // // port.postMessage({
> // // question: "I don't get it.",
> // // guides: facebookIntro
> // // });
> // } else {
> // port.postMessage({
> // question: "MUHAHAHAHAHA!",
> // });
> // }
>
> } else {
> console.log('Getting to error');
479a480
>
480a482,483
>
>