Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cribjs-editor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
cribjs-editor
Commits
279cbb16
Commit
279cbb16
authored
Sep 30, 2020
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Crib Launcher: Make crib enable getScope function available
parent
8858c872
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
cribjs_launcher.js
cribjs_launcher.js
+3
-0
gadget/crib-sw-gadget.js
gadget/crib-sw-gadget.js
+6
-0
No files found.
cribjs_launcher.js
View file @
279cbb16
...
...
@@ -380,6 +380,9 @@
.
allowPublicAcquisition
(
"
crib_sw_get
"
,
function
(
param_list
)
{
return
callCribSWGadget
(
this
,
"
get
"
,
param_list
);
})
.
allowPublicAcquisition
(
"
crib_sw_getScope
"
,
function
(
param_list
)
{
return
callCribSWGadget
(
this
,
"
getScope
"
,
param_list
);
})
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
...
...
gadget/crib-sw-gadget.js
View file @
279cbb16
...
...
@@ -111,6 +111,12 @@
.
push
(
function
(
storage_gadget
)
{
return
storage_gadget
.
remove
(
url
);
});
})
.
declareMethod
(
'
getScope
'
,
function
()
{
return
getStorageGadget
(
this
)
.
push
(
function
(
storage_gadget
)
{
return
storage_gadget
.
getScope
();
});
});
}(
window
,
rJS
,
RSVP
,
jIO
));
\ No newline at end of file
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