Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Digital Experience Group
UNL_Search
Commits
d0b082a5
Commit
d0b082a5
authored
Jun 30, 2021
by
Jeff Sturek
Browse files
Merge branch 'fix-debug-version' into 'master'
Add try/catch to ignore DCFUtility errors See merge request
!35
parents
aa3f56b9
ae5a8e94
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/templates/5.0/embed-debug.tpl.php
View file @
d0b082a5
...
...
@@ -15,9 +15,13 @@
<?php
echo
$maincontent
?>
</main>
<script>
require
([
'
https://unlcms.unl.edu/wdn/templates_5.3/js/compressed/dcf-utility.js
'
,
'
https://unlcms.unl.edu/wdn/templates_5.3/js/compressed/dcf-tabs.js
'
],
function
()
{
DCFUtility
.
flagSupportsWebP
();
DCFUtility
.
flagSupportsJavaScript
();
require
([
'
/wdn/templates_5.3/js/compressed/dcf-utility.js
'
,
'
/wdn/templates_5.3/js/compressed/dcf-tabs.js
'
],
function
()
{
try
{
DCFUtility
.
flagSupportsWebP
();
DCFUtility
.
flagSupportsJavaScript
();
}
catch
(
e
)
{
// do nothing;
}
var
tabs
=
document
.
querySelectorAll
(
'
.dcf-tabs
'
);
var
unlTabs
=
new
DCFTabs
(
tabs
);
...
...
www/templates/5.0/embed.tpl.php
View file @
d0b082a5
...
...
@@ -18,8 +18,12 @@
<script>
require
([
'
https://unlcms.unl.edu/wdn/templates_5.3/js/compressed/dcf-utility.js
'
,
'
https://unlcms.unl.edu/wdn/templates_5.3/js/compressed/dcf-tabs.js
'
],
function
()
{
DCFUtility
.
flagSupportsWebP
();
DCFUtility
.
flagSupportsJavaScript
();
try
{
DCFUtility
.
flagSupportsWebP
();
DCFUtility
.
flagSupportsJavaScript
();
}
catch
(
e
)
{
// do nothing;
}
var
tabs
=
document
.
querySelectorAll
(
'
.dcf-tabs
'
);
var
unlTabs
=
new
DCFTabs
(
tabs
);
...
...
Write
Preview
Supports
Markdown
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