Open daniellowtw opened 6 years ago
Add the code in the MainForm.cs on line 255
webBrowser1.Document.InvokeScript("eval", new object[]{ "if (!Object.assign) {"+ " Object.defineProperty(Object, 'assign', {"+ " enumerable: false,"+ " configurable: true,"+ " writable: true,"+ " value: function(target) {"+ " 'use strict';"+ " if (target === undefined || target === null) {"+ " throw new TypeError('Cannot convert first argument to object');"+ " }"+ " var to = Object(target);"+ " for (var i = 1; i < arguments.length; i++) {"+ " var nextSource = arguments[i];"+ " if (nextSource === undefined || nextSource === null) {"+ " continue;"+ " }"+ " nextSource = Object(nextSource);"+ " var keysArray = Object.keys(Object(nextSource));"+ " for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {"+ " var nextKey = keysArray[nextIndex];"+ " var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);" + " if (desc !== undefined && desc.enumerable) {" + " to[nextKey] = nextSource[nextKey];" + " }" + " }" + " }" + " return to;" + " }" + " });" + "}" });
Hi, I can't seem to insert an image via dragging. It seems to me that the browser engine does not support the functionality.
To reproduce: Create a new wiki, drag an image over the wiki until the green header appears. Expected: Create a new tiddler for that image Actual: Javascript error