diff --git a/scripts/system/inventory/inventory.html b/scripts/system/inventory/inventory.html index 960165107a..28c227dafc 100644 --- a/scripts/system/inventory/inventory.html +++ b/scripts/system/inventory/inventory.html @@ -670,7 +670,7 @@ new Vue({ } return detectedItemType; - } + }, addItem: function(name, url) { var extensionRegex = /\.[0-9a-z]+$/i; // to detect the file type based on extension in the URL. var detectedFileType = url.match(extensionRegex);