Skip to content

Commit

Permalink
git ignore VSCode plugin .history folder
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweck committed Nov 16, 2017
1 parent fb352ec commit d9eca1d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
.history
.DS_Store
node_modules
build.txt
Expand Down
8 changes: 6 additions & 2 deletions js/models/spine.js
Expand Up @@ -286,13 +286,17 @@ var Spine = function(epubPackage, spineDTO) {
*/
this.getItemByHref = function(href) {

var href1 = new URI(self.package.resolveRelativeUrl(href)).normalizePathname().pathname();
var href1_ = self.package.resolveRelativeUrl(href);
href1_ = href1_.replace("filesystem:chrome-extension://", "filesystem-chrome-extension://");
var href1 = new URI(href1_).normalizePathname().pathname();

var length = self.items.length;

for(var i = 0; i < length; i++) {

var href2 = new URI(self.package.resolveRelativeUrl(self.items[i].href)).normalizePathname().pathname();
var href2_ = self.package.resolveRelativeUrl(self.items[i].href);
href2_ = href2_.replace("filesystem:chrome-extension://", "filesystem-chrome-extension://");
var href2 = new URI(href2_).normalizePathname().pathname();

if(href1 == href2) {
return self.items[i];
Expand Down
2 changes: 1 addition & 1 deletion readium-cfi-js
Submodule readium-cfi-js updated 1 files
+1 −0 .gitignore

0 comments on commit d9eca1d

Please sign in to comment.