Skip to content

Commit

Permalink
Remove nonfunctional snyk badge
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jul 9, 2023
1 parent 6fd2a20 commit ede9a23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
_A single HTML file for showing a reveal.js presentation locally_

[![License:MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/center-key/reveal.js-local/blob/main/LICENSE.txt)
[![Vulnerabilities](https://snyk.io/test/github/center-key/reveal.js-local/badge.svg)](https://snyk.io/test/github/center-key/reveal.js-local)
[![Build](https://github.com/center-key/reveal.js-local/workflows/build/badge.svg)](https://github.com/center-key/reveal.js-local/actions/workflows/run-spec-on-push.yaml)

## A) Try It
Expand Down
3 changes: 2 additions & 1 deletion docs/reveal.js-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const revealJsLocal = {
globalThis.document.getElementById('presentation-subtitle').innerHTML = subtitle;
},
images() {
const folder = document.location.href.split('/').slice(0, -1).join('/');
const href = globalThis.document.location.href;
const folder = href.split('/').slice(0, -1).join('/');
console.log('Images folder:');
console.log('%c' + folder + '/assets', 'font-family: monospace;');
const configureImage = (img) => {
Expand Down
3 changes: 2 additions & 1 deletion src/reveal.js-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const revealJsLocal = {
globalThis.document.getElementById('presentation-subtitle').innerHTML = subtitle;
},
images() {
const folder = document.location.href.split('/').slice(0, -1).join('/');
const href = globalThis.document.location.href;
const folder = href.split('/').slice(0, -1).join('/');
console.log('Images folder:');
console.log('%c' + folder + '/assets', 'font-family: monospace;');
const configureImage = (img) => {
Expand Down

0 comments on commit ede9a23

Please sign in to comment.