Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tutor-shot-extension
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ramdayal Munda
tutor-shot-extension
Commits
c81bae52
Commit
c81bae52
authored
Nov 15, 2023
by
ramdayalmunda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image number fix
parent
3b4e49e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
background.js
background.js
+2
-1
No files found.
background.js
View file @
c81bae52
...
@@ -39,7 +39,7 @@ var getUserDetails = null
...
@@ -39,7 +39,7 @@ var getUserDetails = null
getData
(
'userDetails'
,
async
(
data
)
=>
{
getData
(
'userDetails'
,
async
(
data
)
=>
{
if
(
data
){
if
(
data
){
let
tso
=
await
getData
(
'tutorShot'
)
let
tso
=
await
getData
(
'tutorShot
Id
'
)
tutorShotId
=
tso
?
tso
:
null
tutorShotId
=
tso
?
tso
:
null
let
imgNum
=
await
getData
(
'imageNumber'
)
let
imgNum
=
await
getData
(
'imageNumber'
)
imageNumber
=
imgNum
?
imgNum
:
0
imageNumber
=
imgNum
?
imgNum
:
0
...
@@ -304,6 +304,7 @@ var getUserDetails = null
...
@@ -304,6 +304,7 @@ var getUserDetails = null
status
:
tutorShotId
?
(
recording
?
"recording"
:
"paused"
)
:
"stopped"
,
status
:
tutorShotId
?
(
recording
?
"recording"
:
"paused"
)
:
"stopped"
,
...
request
.
captureInfo
?
request
.
captureInfo
:
{}
...
request
.
captureInfo
?
request
.
captureInfo
:
{}
}
}
setData
(
"imageNumber"
,
imageNumber
)
// to send message to the content instance of the
// to send message to the content instance of the
chrome
.
tabs
.
sendMessage
(
activeTab
.
id
,
message
);
chrome
.
tabs
.
sendMessage
(
activeTab
.
id
,
message
);
let
data
=
await
api
.
post
(
'/tutor-shot/screen-shot'
,
message
)
let
data
=
await
api
.
post
(
'/tutor-shot/screen-shot'
,
message
)
...
...
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