mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-16 20:26:37 +00:00
23 lines
470 B
JavaScript
23 lines
470 B
JavaScript
|
//
|
||
|
// Action.js
|
||
|
// IceCubesActionExtension
|
||
|
//
|
||
|
// Created by Thomas Durand on 26/01/2023.
|
||
|
//
|
||
|
|
||
|
var Action = function() {};
|
||
|
|
||
|
Action.prototype = {
|
||
|
run: function(arguments) {
|
||
|
arguments.completionFunction({ "url" : document.URL })
|
||
|
},
|
||
|
finalize: function(arguments) {
|
||
|
var openingUrl = arguments["deeplink"]
|
||
|
if (openingUrl) {
|
||
|
document.location.href = openingUrl
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
var ExtensionPreprocessingJS = new Action
|