From a5b9a607bb1dc9860e0df06c7edf6f051ff82512 Mon Sep 17 00:00:00 2001 From: Adam Solove Date: Thu, 14 Mar 2024 19:20:33 -0400 Subject: [PATCH] Disable checking file name and erroring for shared gdrive files. --- src/web/js/gdrive-locators.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/web/js/gdrive-locators.js b/src/web/js/gdrive-locators.js index 682f96f0f..fb5717559 100644 --- a/src/web/js/gdrive-locators.js +++ b/src/web/js/gdrive-locators.js @@ -164,12 +164,6 @@ define("cpo/gdrive-locators", [], function() { // Shared GDrive locators require a refresh to be re-fetched var sharedLocatorCache = {}; function makeSharedGDriveLocator(filename, id) { - function checkFileResponse(file, filename, restarter) { - var actualName = file.getName(); - if(actualName !== filename) { - restarter.error(runtime.ffi.makeMessageException("Expected file with id " + id + " to have name " + filename + ", but its name was " + actualName)); - } - } function contentRequestFailure(failure) { return "Could not load file with name " + filename; } @@ -192,8 +186,6 @@ define("cpo/gdrive-locators", [], function() { restarter.error(runtime.ffi.makeMessageException(fileRequestFailure(failure, filename))); }); var fileP = filesP.then(function(file) { - checkFileResponse(file, filename, restarter); - // checkFileResponse throws if there's an error return file; }); var contentsP = Q.all([fileP, fileP.then(function(file) {