Get(object keys)
/// An object which gives each key/value pair to update storage with. Any other key/value pairs in storage will not be affected.
Primitive values such as numbers will serialize as expected. Values with a typeof "object" and "function" will typically serialize to {}, with the exception of Array (serializes as expected), Date, and Regex (serialize using their String representation).
public virtual ValueTask Set(object items)
{
- return webExtensionJSRuntime.InvokeVoidAsync("", items);
+ return InvokeVoidAsync("set", items);
}
// Function Definition
@@ -65,7 +63,7 @@ public virtual ValueTask Set(object items)
/// A single key or a list of keys for items to remove.
public virtual ValueTask Remove(string keys)
{
- return webExtensionJSRuntime.InvokeVoidAsync("", keys);
+ return InvokeVoidAsync("remove", keys);
}
// Function Definition
@@ -75,7 +73,7 @@ public virtual ValueTask Remove(string keys)
/// A single key or a list of keys for items to remove.
public virtual ValueTask Remove(IEnumerable keys)
{
- return webExtensionJSRuntime.InvokeVoidAsync("", keys);
+ return InvokeVoidAsync("remove", keys);
}
// Function Definition
@@ -84,7 +82,7 @@ public virtual ValueTask Remove(IEnumerable keys)
///